mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Websocket fix
Make sure server is considered online before starting/restarting the websocket client.
This commit is contained in:
parent
64c47f1a87
commit
d0c939b78e
1 changed files with 3 additions and 1 deletions
|
@ -326,7 +326,9 @@ class WebSocketClient(threading.Thread):
|
||||||
|
|
||||||
while not self.monitor.abortRequested():
|
while not self.monitor.abortRequested():
|
||||||
|
|
||||||
|
if window('emby_online') == "true":
|
||||||
self._client.run_forever(ping_interval=10)
|
self._client.run_forever(ping_interval=10)
|
||||||
|
|
||||||
if self._stop_websocket:
|
if self._stop_websocket:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue