No settings calls in service loop
This commit is contained in:
parent
ceedba4f46
commit
1bec2d9ac9
1 changed files with 3 additions and 4 deletions
|
@ -114,6 +114,8 @@ class Service():
|
||||||
# Queue for background sync
|
# Queue for background sync
|
||||||
queue = Queue.Queue(maxsize=200)
|
queue = Queue.Queue(maxsize=200)
|
||||||
|
|
||||||
|
connectMsg = True if utils.settings('connectMsg') == 'true' else False
|
||||||
|
|
||||||
# Initialize important threads
|
# Initialize important threads
|
||||||
user = userclient.UserClient()
|
user = userclient.UserClient()
|
||||||
ws = wsc.WebSocket(queue)
|
ws = wsc.WebSocket(queue)
|
||||||
|
@ -177,8 +179,7 @@ class Service():
|
||||||
else:
|
else:
|
||||||
# Start up events
|
# Start up events
|
||||||
self.warn_auth = True
|
self.warn_auth = True
|
||||||
if (utils.settings('connectMsg') == "true" and
|
if connectMsg and self.welcome_msg:
|
||||||
self.welcome_msg):
|
|
||||||
# Reset authentication warnings
|
# Reset authentication warnings
|
||||||
self.welcome_msg = False
|
self.welcome_msg = False
|
||||||
xbmcgui.Dialog().notification(
|
xbmcgui.Dialog().notification(
|
||||||
|
@ -272,8 +273,6 @@ class Service():
|
||||||
if not self.userclient_running:
|
if not self.userclient_running:
|
||||||
self.userclient_running = True
|
self.userclient_running = True
|
||||||
user.start()
|
user.start()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue