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'):
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'):
# Update token
server['UserId'] = settings('userId') or None