diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index ba31d5e..a42c3ca 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -66,6 +66,13 @@ public class ChatClient extends JFrame implements KeyListener { } catch (IOException e) { e.printStackTrace(); } + + try { + fromServerReader.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } }