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)