mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
check the client is not none before close
This commit is contained in:
parent
0cf8f07daf
commit
1a8cbd7f99
1 changed files with 2 additions and 1 deletions
|
@ -346,5 +346,6 @@ class WebSocketClient(threading.Thread):
|
|||
def stop_client(self):
|
||||
|
||||
self._stop_websocket = True
|
||||
self._client.close()
|
||||
if self._client is not None:
|
||||
self._client.close()
|
||||
log.info("Stopping thread")
|
||||
|
|
Loading…
Reference in a new issue