From 4180a426c5bce92c0f9161d198737b6f66c968e3 Mon Sep 17 00:00:00 2001 From: thomasv Date: Thu, 3 Jan 2013 16:05:38 +0100 Subject: [PATCH] auto-reconnect to random server if server is not there --- lib/interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/interface.py b/lib/interface.py index d7235a0a2..9caa88d35 100644 --- a/lib/interface.py +++ b/lib/interface.py @@ -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: