diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index a42c3ca..93731f3 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -73,6 +73,8 @@ public class ChatClient extends JFrame implements KeyListener { e.printStackTrace(); } + toServerWriter.close(); + } }