Upon reset, make sure we stop sync threads

This commit is contained in:
angelblue05 2016-10-27 01:25:03 -05:00
parent f3e52e1a3b
commit d37feaff27
2 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class Service(object):
self.server_online = False
elif window('emby_online') == "sleep":
elif window('emby_online') in ("sleep", "reset"):
# device going to sleep
if self.websocket_running:
self.websocket_thread.stop_client()

View File

@ -367,6 +367,7 @@ def reset():
return
# first stop any db sync
window('emby_online', value="reset")
window('emby_shouldStop', value="true")
count = 10
while window('emby_dbScan') == "true":