auto-reconnect to random server if server is not there

This commit is contained in:
thomasv 2013-01-03 16:05:38 +01:00
parent 6b51628805
commit 4180a426c5
1 changed files with 2 additions and 1 deletions

View File

@ -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: