Skip to content

Commit

Permalink
Fix error when closing sockets
Browse files Browse the repository at this point in the history
This occurs when ZeroNet is started and you send a SIGINT signal (for example with CTRL+C).
  • Loading branch information
marek22k committed Oct 30, 2023
1 parent 19056b4 commit 7bbbf95
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 @@ -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)
Expand Down

0 comments on commit 7bbbf95

Please sign in to comment.