mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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():
|
||||
|
||||
self._client.run_forever(ping_interval=10)
|
||||
if window('emby_online') == "true":
|
||||
self._client.run_forever(ping_interval=10)
|
||||
|
||||
if self._stop_websocket:
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue