Skip to content

Commit

Permalink
athenad: close websocket before starting next loop iteration (#34085)
Browse files Browse the repository at this point in the history
explicitly close websocket before starting next loop iteration
  • Loading branch information
deanlee authored Nov 24, 2024
1 parent 78b6eae commit 957d39a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/athena/athenad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 957d39a

Please sign in to comment.