Another follow up

Use a while loop instead.
This commit is contained in:
angelblue05 2015-05-12 03:16:34 -05:00
parent 8944012821
commit de527327a5
2 changed files with 9 additions and 2 deletions

View file

@ -269,7 +269,7 @@ class DownloadUtils():
if r.headers['X-Application-Error-Code'] == "ParentalControl":
# Parental control - access restricted
WINDOW.setProperty("Server_status", "restricted")
xbmcgui.Dialog().notification("Emby server", "Access restricted.", xbmcgui.NOTIFICATION_ERROR)
xbmcgui.Dialog().notification("Emby server", "Access restricted.", xbmcgui.NOTIFICATION_ERROR, time=5000)
return False
elif (status == "401") or (status == "Auth"):

View file

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