fix start instead of run (#3353)
This commit is contained in:
parent
4e85066523
commit
749533e14d
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user