commit 23f56ffa8ab64e9d22f2c1427c5114114c2ff879
parent e4bd445a385e9cd85dfb202c4e597aea4b9e818c
Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 13 Sep 2018 21:02:37 +0200
network: avoid infinite reconnect loop to same server
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/network.py b/electrum/network.py
@@ -580,7 +580,7 @@ class Network(PrintError):
# over unknown ones, i.e. start it again right away.
old_server = self.interface.server
self.close_interface(self.interface)
- if len(self.interfaces) <= self.num_server:
+ if old_server != server and len(self.interfaces) <= self.num_server:
self.start_interface(old_server)
self.interface = i