From 57b1af041325ed068d8e30ead4bc36559096d3bf Mon Sep 17 00:00:00 2001 From: Alena Bandarovich Date: Wed, 7 Feb 2024 19:24:49 +0100 Subject: [PATCH] Close writing messages to server --- src/main/java/ChatClient.java | 2 ++ 1 file changed, 2 insertions(+) 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(); + } }