From d0c939b78e285850b0d9f7bd2d8f355f6f1727ef Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 19 Sep 2016 18:42:08 -0500 Subject: [PATCH] Websocket fix Make sure server is considered online before starting/restarting the websocket client. --- resources/lib/websocket_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lib/websocket_client.py b/resources/lib/websocket_client.py index 441c06c6..447c81c7 100644 --- a/resources/lib/websocket_client.py +++ b/resources/lib/websocket_client.py @@ -326,7 +326,9 @@ class WebSocketClient(threading.Thread): while not self.monitor.abortRequested(): - self._client.run_forever(ping_interval=10) + if window('emby_online') == "true": + self._client.run_forever(ping_interval=10) + if self._stop_websocket: break