Add watchdog timestamp for while loops
If server was offline or access was restricted, would create false positives.
This commit is contained in:
parent
d2a3f316be
commit
b8d0289cb7
1 changed files with 4 additions and 0 deletions
|
@ -151,7 +151,10 @@ class Service():
|
||||||
self.warn_auth = False
|
self.warn_auth = False
|
||||||
|
|
||||||
while user.HasAccess == False:
|
while user.HasAccess == False:
|
||||||
|
|
||||||
|
WINDOW.setProperty("Emby_Service_Timestamp", str(int(time.time())))
|
||||||
user.hasAccess()
|
user.hasAccess()
|
||||||
|
|
||||||
if self.KodiMonitor.waitForAbort(5):
|
if self.KodiMonitor.waitForAbort(5):
|
||||||
# Abort was requested while waiting. We should exit
|
# Abort was requested while waiting. We should exit
|
||||||
break
|
break
|
||||||
|
@ -160,6 +163,7 @@ class Service():
|
||||||
else:
|
else:
|
||||||
# Wait until server becomes online or shut down is requested
|
# Wait until server becomes online or shut down is requested
|
||||||
while not self.KodiMonitor.abortRequested():
|
while not self.KodiMonitor.abortRequested():
|
||||||
|
WINDOW.setProperty("Emby_Service_Timestamp", str(int(time.time())))
|
||||||
|
|
||||||
if user.getServer() == "":
|
if user.getServer() == "":
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue