mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 01:36:11 +00:00
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
|
||||
|
||||
while user.HasAccess == False:
|
||||
|
||||
WINDOW.setProperty("Emby_Service_Timestamp", str(int(time.time())))
|
||||
user.hasAccess()
|
||||
|
||||
if self.KodiMonitor.waitForAbort(5):
|
||||
# Abort was requested while waiting. We should exit
|
||||
break
|
||||
|
@ -160,6 +163,7 @@ class Service():
|
|||
else:
|
||||
# Wait until server becomes online or shut down is requested
|
||||
while not self.KodiMonitor.abortRequested():
|
||||
WINDOW.setProperty("Emby_Service_Timestamp", str(int(time.time())))
|
||||
|
||||
if user.getServer() == "":
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue