diff --git a/moonraker/websockets.py b/moonraker/websockets.py index 3fff19c..5b81dc0 100644 --- a/moonraker/websockets.py +++ b/moonraker/websockets.py @@ -178,7 +178,7 @@ class WebsocketManager: 'method': "notify_" + name, 'params': [data]}) async with self.ws_lock: - for ws in self.websockets.values(): + for ws in list(self.websockets.values()): try: ws.write_message(notification) except WebSocketClosedError: