From 1bec2d9ac96d4c89b1df16a89308201c2a3f9ec3 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 7 Apr 2016 16:25:16 +0200 Subject: [PATCH] No settings calls in service loop --- service.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/service.py b/service.py index 754037fa..212a9244 100644 --- a/service.py +++ b/service.py @@ -114,6 +114,8 @@ class Service(): # Queue for background sync queue = Queue.Queue(maxsize=200) + connectMsg = True if utils.settings('connectMsg') == 'true' else False + # Initialize important threads user = userclient.UserClient() ws = wsc.WebSocket(queue) @@ -177,8 +179,7 @@ class Service(): else: # Start up events self.warn_auth = True - if (utils.settings('connectMsg') == "true" and - self.welcome_msg): + if connectMsg and self.welcome_msg: # Reset authentication warnings self.welcome_msg = False xbmcgui.Dialog().notification( @@ -272,8 +273,6 @@ class Service(): if not self.userclient_running: self.userclient_running = True user.start() - - break