diff --git a/src/Ui/UiServer.py b/src/Ui/UiServer.py index 088208323..74372e7cc 100644 --- a/src/Ui/UiServer.py +++ b/src/Ui/UiServer.py @@ -181,7 +181,8 @@ 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)