From 0957069b71314f6de4b8211d81c2446b08c80864 Mon Sep 17 00:00:00 2001 From: Paul Kattenborn Date: Wed, 7 Feb 2024 00:46:21 +0100 Subject: [PATCH] =?UTF-8?q?finally=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/ChatServer.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/ChatServer.java b/src/main/java/ChatServer.java index 70929e7..33d2860 100644 --- a/src/main/java/ChatServer.java +++ b/src/main/java/ChatServer.java @@ -25,6 +25,13 @@ public class ChatServer { } } catch (IOException e) { e.printStackTrace(); + } finally { + try { + serverSocket.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } }