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 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()

View file

@ -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":