From 370c2b04d1b5cac5e3b0fc6af0b1f1dadca353a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20K=C3=BCthe?= Date: Sun, 22 Oct 2023 19:37:05 +0200 Subject: [PATCH] Fix error when closing sockets --- src/Ui/UiServer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ui/UiServer.py b/src/Ui/UiServer.py index 61943ada1..b38d9d03e 100644 --- a/src/Ui/UiServer.py +++ b/src/Ui/UiServer.py @@ -192,7 +192,9 @@ def stop(self): from Debug import DebugReloader DebugReloader.watcher.stop() - self.server.socket.close() + for socket in self.server.sockets: + socket.stop() + self.server.stop() self.running = False time.sleep(1)