tnetwork.set_server: test if server is the same - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit d502b938720467a986ec6b48119c2f843606b9a2 (DIR) parent 7c4d7dc3272eb8d0c3458862049bb37c8c07607f (HTM) Author: ThomasV <thomasv@gitorious> Date: Fri, 27 Sep 2013 13:15:57 +0200 network.set_server: test if server is the same Diffstat: M lib/network.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- (DIR) diff --git a/lib/network.py b/lib/network.py t@@ -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)