mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-08 01:06:12 +00:00
Another follow up
Use a while loop instead.
This commit is contained in:
parent
8944012821
commit
de527327a5
2 changed files with 9 additions and 2 deletions
|
@ -145,11 +145,18 @@ class Service():
|
|||
break
|
||||
#WebSocketThread().processPendingActions()
|
||||
else:
|
||||
user.hasAccess()
|
||||
|
||||
if self.warn_auth:
|
||||
self.logMsg("Not authenticated yet.", 1)
|
||||
self.warn_auth = False
|
||||
|
||||
while user.HasAccess == False:
|
||||
user.hasAccess()
|
||||
if self.KodiMonitor.waitForAbort(5):
|
||||
# Abort was requested while waiting. We should exit
|
||||
break
|
||||
|
||||
|
||||
else:
|
||||
# Wait until server becomes online or shut down is requested
|
||||
while not self.KodiMonitor.abortRequested():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue