fix start instead of run (#3353)

This commit is contained in:
Loredana Crusoveanu 2018-01-05 20:18:24 +02:00 committed by Grzegorz Piwowarek
parent 4e85066523
commit 749533e14d
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ public class EchoMultiServer {
try {
serverSocket = new ServerSocket(port);
while (true)
new EchoClientHandler(serverSocket.accept()).run();
new EchoClientHandler(serverSocket.accept()).start();
} catch (IOException e) {
e.printStackTrace();