From b3e23d1f3f692fed3e7be13664e590c1d3610e9c Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Thu, 8 Feb 2024 15:05:14 +0100 Subject: [PATCH] if fromServerReader --- src/main/java/ChatClient.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index b038e1a..ad481c8 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -72,8 +72,11 @@ public class ChatClient extends JFrame implements KeyListener { e.printStackTrace(); } } - // fromServerReader.close(); (warten auf ServerReader) - // toServerWriter.close(); (warten auf ServerWriter) + /* if (fromServerReader != null) { + + fromServerReader.close(); (warten auf ServerReader) + } */ + /* toServerWriter.close(); (warten auf ServerWriter) */ } }