From 23f56ffa8ab64e9d22f2c1427c5114114c2ff879 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 13 Sep 2018 21:02:37 +0200 Subject: [PATCH] network: avoid infinite reconnect loop to same server --- electrum/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/network.py b/electrum/network.py index 61b4e5c2e..57b522a1a 100644 --- 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