mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -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,8 +105,8 @@ def run():
|
|||
logger.info(u"PlexPy WebSocket :: Reconnecting websocket...")
|
||||
ws.shutdown()
|
||||
ws_connected = False
|
||||
start_thread()
|
||||
|
||||
threading.Thread(target=run).start()
|
||||
|
||||
if not ws_connected and not ws_reconnect:
|
||||
logger.error(u"PlexPy WebSocket :: Connection unavailable, falling back to polling.")
|
||||
plexpy.POLLING_FAILOVER = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue