mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-23 17:23:44 +08:00
athenad: close websocket before starting next loop iteration (#34085)
explicitly close websocket before starting next loop iteration
This commit is contained in:
@@ -801,6 +801,8 @@ def main(exit_event: threading.Event = None):
|
||||
cur_upload_items.clear()
|
||||
|
||||
handle_long_poll(ws, exit_event)
|
||||
|
||||
ws.close()
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
break
|
||||
except (ConnectionError, TimeoutError, WebSocketException):
|
||||
|
||||
Reference in New Issue
Block a user