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