Fix error when closing sockets

This commit is contained in:
Marek Küthe 2023-10-22 19:37:05 +02:00
parent d731fe9f91
commit 370c2b04d1
No known key found for this signature in database
GPG key ID: 7E869146699108C7

View file

@ -192,7 +192,9 @@ class UiServer:
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)