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:
parent
167d54c2a3
commit
b8813b5bf7
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue