From 2528c64f654194dd1e06a23919ef5481647fe53f Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Thu, 8 Feb 2024 15:07:13 +0100 Subject: [PATCH] if toServerWriter --- 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 ad481c8..d3d6300 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -75,8 +75,11 @@ public class ChatClient extends JFrame implements KeyListener { /* if (fromServerReader != null) { fromServerReader.close(); (warten auf ServerReader) - } */ - /* toServerWriter.close(); (warten auf ServerWriter) */ + } */ + /* if (toServerWriter != null) { + + toServerWriter.close(); (warten auf ServerWriter) + } */ } }