diff --git a/src/main/java/ClientHandler.java b/src/main/java/ClientHandler.java index 5561e3c..9c52f54 100644 --- a/src/main/java/ClientHandler.java +++ b/src/main/java/ClientHandler.java @@ -41,6 +41,7 @@ public class ClientHandler implements Runnable { e.printStackTrace(); } finally { //chatServer.removeClient(this); + throw new RuntimeException(e); chatServer.broadcastMessage(name + " disconnected."); if (fromClientReader != null) {