From 66568f1645cfebdc621c056a3f9c7e67c41fb23e 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ui/UiServer.py b/src/Ui/UiServer.py index 61943ada1..1d46bb462 100644 --- a/src/Ui/UiServer.py +++ b/src/Ui/UiServer.py @@ -192,7 +192,8 @@ def stop(self): from Debug import DebugReloader DebugReloader.watcher.stop() - self.server.socket.close() + for socket in self.server.sockets: + socket.close() self.server.stop() self.running = False time.sleep(1)