auto-reconnect to random server if server is not there
This commit is contained in:
parent
6b51628805
commit
4180a426c5
|
@ -382,7 +382,8 @@ class Interface(threading.Thread):
|
|||
def init_interface(self):
|
||||
if self.config.get('server'):
|
||||
self.init_with_server(self.config)
|
||||
else:
|
||||
|
||||
if not self.is_connected:
|
||||
print "Using random server..."
|
||||
servers = DEFAULT_SERVERS[:]
|
||||
while servers:
|
||||
|
|
Loading…
Reference in New Issue