Skip to content

Commit 749533e

Browse files
lor6pivovarit
authored andcommitted
fix start instead of run (eugenp#3353)
1 parent 4e85066 commit 749533e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core-java/src/main/java/com/baeldung/socket/EchoMultiServer.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void start(int port) {
1616
try {
1717
serverSocket = new ServerSocket(port);
1818
while (true)
19-
new EchoClientHandler(serverSocket.accept()).run();
19+
new EchoClientHandler(serverSocket.accept()).start();
2020

2121
} catch (IOException e) {
2222
e.printStackTrace();

0 commit comments

Comments
 (0)