commit d502b938720467a986ec6b48119c2f843606b9a2
parent 7c4d7dc3272eb8d0c3458862049bb37c8c07607f
Author: ThomasV <thomasv@gitorious>
Date: Fri, 27 Sep 2013 13:15:57 +0200
network.set_server: test if server is the same
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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)