diff --git a/oml/websocket.py b/oml/websocket.py index 8c187c9..734780a 100644 --- a/oml/websocket.py +++ b/oml/websocket.py @@ -41,10 +41,9 @@ class Handler(WebSocketHandler): 'id': settings.USER_ID, 'online': state.online }) - if state.nodes: - for node in state.nodes._nodes.values(): - node.trigger_status() - + if state.nodes: + for node in state.nodes._nodes.values(): + node.trigger_status() #websocket calls def on_message(self, message):