From 8c588ee75c3ea333ce501d71ed0e2554d6af9b4b Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 14 Apr 2022 19:13:21 +0200 Subject: [PATCH] fixed Disconnecting when window is closed #6 --- .../java/ch/zhaw/pm2/multichat/client/ChatWindowController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java b/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java index 1a8a9c6..6a2f224 100644 --- a/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java +++ b/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java @@ -49,7 +49,7 @@ public class ChatWindowController { } private void applicationClose() { - connectionHandler.setState(DISCONNECTED); + disconnect(); } @FXML