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

View File

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