From b8813b5bf7ccff74f91a927bf2ae5675cda86450 Mon Sep 17 00:00:00 2001 From: faush01 Date: Wed, 1 Apr 2015 09:39:46 +1100 Subject: [PATCH] move the auth create token to the top and dont try to create for each loop This makes it less auth spammy --- service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service.py b/service.py index 7d81725d..20975167 100644 --- a/service.py +++ b/service.py @@ -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):