Browse Source

small correction

remotes/origin/client-handler
Valentin Spiroski 11 months ago
parent
commit
39d9621062
  1. 6
      src/main/java/ClientHandler.java

6
src/main/java/ClientHandler.java

@ -1,4 +1,6 @@
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
@ -38,10 +40,10 @@ public class ClientHandler implements Runnable {
message = fromClientReader.readLine();
}
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException(e);
} finally {
//chatServer.removeClient(this);
throw new RuntimeException(e);
chatServer.broadcastMessage(name + " disconnected.");
if (fromClientReader != null) {

Loading…
Cancel
Save