Catch signin state error

This commit is contained in:
angelblue05 2016-09-19 02:57:54 -05:00
parent ab0d5e24be
commit 0e36dd63ef

View file

@ -90,8 +90,11 @@ class InitialSetup(object):
if settings('server'): if settings('server'):
current_state = self.connectmanager.get_state() current_state = self.connectmanager.get_state()
for server in current_state['Servers']: if current_state['State'] == STATE['ConnectSignIn']:
# Failed to identify server
return False
for server in current_state['Servers']:
if server['Id'] == settings('serverId'): if server['Id'] == settings('serverId'):
# Update token # Update token
server['UserId'] = settings('userId') or None server['UserId'] = settings('userId') or None