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 66568f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ui/UiServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 66568f1

Please sign in to comment.