mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Reconnect websocket on a new thread
This commit is contained in:
parent
7ebd74a54a
commit
cf70b3e989
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ def run():
|
||||||
logger.info(u"PlexPy WebSocket :: Reconnecting websocket...")
|
logger.info(u"PlexPy WebSocket :: Reconnecting websocket...")
|
||||||
ws.shutdown()
|
ws.shutdown()
|
||||||
ws_connected = False
|
ws_connected = False
|
||||||
start_thread()
|
threading.Thread(target=run).start()
|
||||||
|
|
||||||
if not ws_connected and not ws_reconnect:
|
if not ws_connected and not ws_reconnect:
|
||||||
logger.error(u"PlexPy WebSocket :: Connection unavailable, falling back to polling.")
|
logger.error(u"PlexPy WebSocket :: Connection unavailable, falling back to polling.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue