mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix websocket not restarting
Didn't realise the method and class variable had the same name.
This commit is contained in:
parent
5112500f4d
commit
fa826c2791
1 changed files with 3 additions and 4 deletions
|
@ -27,7 +27,7 @@ class WebSocket_Client(threading.Thread):
|
||||||
_shared_state = {}
|
_shared_state = {}
|
||||||
|
|
||||||
client = None
|
client = None
|
||||||
stopClient = False
|
stopWebsocket = False
|
||||||
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -302,8 +302,7 @@ class WebSocket_Client(threading.Thread):
|
||||||
while not monitor.abortRequested():
|
while not monitor.abortRequested():
|
||||||
|
|
||||||
self.client.run_forever()
|
self.client.run_forever()
|
||||||
|
if self.stopWebsocket:
|
||||||
if self.stopClient:
|
|
||||||
break
|
break
|
||||||
|
|
||||||
if monitor.waitForAbort(5):
|
if monitor.waitForAbort(5):
|
||||||
|
@ -314,6 +313,6 @@ class WebSocket_Client(threading.Thread):
|
||||||
|
|
||||||
def stopClient(self):
|
def stopClient(self):
|
||||||
|
|
||||||
self.stopClient = True
|
self.stopWebsocket = True
|
||||||
self.client.close()
|
self.client.close()
|
||||||
self.logMsg("Stopping thread.")
|
self.logMsg("Stopping thread.")
|
Loading…
Reference in a new issue