mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Upon reset, make sure we stop sync threads
This commit is contained in:
parent
f3e52e1a3b
commit
d37feaff27
2 changed files with 2 additions and 1 deletions
|
@ -218,7 +218,7 @@ class Service(object):
|
||||||
|
|
||||||
self.server_online = False
|
self.server_online = False
|
||||||
|
|
||||||
elif window('emby_online') == "sleep":
|
elif window('emby_online') in ("sleep", "reset"):
|
||||||
# device going to sleep
|
# device going to sleep
|
||||||
if self.websocket_running:
|
if self.websocket_running:
|
||||||
self.websocket_thread.stop_client()
|
self.websocket_thread.stop_client()
|
||||||
|
|
|
@ -367,6 +367,7 @@ def reset():
|
||||||
return
|
return
|
||||||
|
|
||||||
# first stop any db sync
|
# first stop any db sync
|
||||||
|
window('emby_online', value="reset")
|
||||||
window('emby_shouldStop', value="true")
|
window('emby_shouldStop', value="true")
|
||||||
count = 10
|
count = 10
|
||||||
while window('emby_dbScan') == "true":
|
while window('emby_dbScan') == "true":
|
||||||
|
|
Loading…
Reference in a new issue