From 957d39a5b6398b3a15a77ccec5a2333001c5dbe9 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sun, 24 Nov 2024 12:35:42 +0800 Subject: [PATCH] athenad: close websocket before starting next loop iteration (#34085) explicitly close websocket before starting next loop iteration --- system/athena/athenad.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/athena/athenad.py b/system/athena/athenad.py index b5a8f5127fed13..9c9acf2c13c272 100755 --- a/system/athena/athenad.py +++ b/system/athena/athenad.py @@ -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):