auto-reconnect to random server if server is not there
authorthomasv <thomasv@gitorious>
Thu, 3 Jan 2013 15:05:38 +0000 (16:05 +0100)
committerthomasv <thomasv@gitorious>
Thu, 3 Jan 2013 15:05:38 +0000 (16:05 +0100)
lib/interface.py

index d7235a0..9caa88d 100644 (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: