git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6b51628
)
auto-reconnect to random server if server is not there
author
thomasv
<thomasv@gitorious>
Thu, 3 Jan 2013 15:05:38 +0000 (16:05 +0100)
committer
thomasv
<thomasv@gitorious>
Thu, 3 Jan 2013 15:05:38 +0000 (16:05 +0100)
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
d7235a0
..
9caa88d
100644
(file)
--- 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: