git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7c4d7dc
)
network.set_server: test if server is the same
author
ThomasV
<thomasv@gitorious>
Fri, 27 Sep 2013 11:15:57 +0000 (13:15 +0200)
committer
ThomasV
<thomasv@gitorious>
Fri, 27 Sep 2013 11:15:57 +0000 (13:15 +0200)
lib/network.py
patch
|
blob
|
history
diff --git
a/lib/network.py
b/lib/network.py
index
cad651e
..
fd92faa
100644
(file)
--- a/
lib/network.py
+++ b/
lib/network.py
@@
-125,6
+125,9
@@
class Network(threading.Thread):
def set_server(self, server, proxy):
+ if self.default_server == server:
+ return
+
i = self.interface
self.default_server = server
self.start_interface(server)