Skip to content

Commit

Permalink
Fix error when closing sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
marek22k committed Oct 22, 2023
1 parent d731fe9 commit 370c2b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Ui/UiServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 370c2b0

Please sign in to comment.