Skip to content

Commit 3c36fab

Browse files
author
Dylan Huang
committed
Fix WebSocketManager to reset broadcast task after cancellation
1 parent f74699a commit 3c36fab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

eval_protocol/utils/logs_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def stop_broadcast_loop(self):
109109
"""Stop the broadcast loop."""
110110
if self._broadcast_task and not self._broadcast_task.done():
111111
self._broadcast_task.cancel()
112+
self._broadcast_task = None
112113

113114

114115
class EvaluationWatcher:

0 commit comments

Comments
 (0)