move the auth create token to the top and dont try to create for each loop

This makes it less auth spammy
This commit is contained in:
faush01 2015-04-01 09:39:46 +11:00
parent 167d54c2a3
commit b8813b5bf7

View file

@ -34,6 +34,7 @@ class Service():
def ServiceEntryPoint(self):
ConnectionManager().checkServer()
DownloadUtils().authenticate(retreive=True)
# check kodi library sources
mayRun = utils.checkKodiSources()
@ -79,7 +80,7 @@ class Service():
pass
else:
# background worker for database sync
if DownloadUtils().authenticate(retreive=True) != "":
if DownloadUtils().authenticate(retreive=False) != "":
# Correctly launch the websocket, if user manually launches the add-on
if (self.newWebSocketThread == None):