|
@ -41,6 +41,7 @@ public class ClientHandler implements Runnable { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
} finally { |
|
|
} finally { |
|
|
//chatServer.removeClient(this); |
|
|
//chatServer.removeClient(this); |
|
|
|
|
|
throw new RuntimeException(e); |
|
|
chatServer.broadcastMessage(name + " disconnected."); |
|
|
chatServer.broadcastMessage(name + " disconnected."); |
|
|
|
|
|
|
|
|
if (fromClientReader != null) { |
|
|
if (fromClientReader != null) { |
|
|