Browse Source

network: avoid infinite reconnect loop to same server

3.3.3.1
SomberNight 6 years ago
parent
commit
23f56ffa8a
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/network.py

2
electrum/network.py

@ -580,7 +580,7 @@ class Network(PrintError):
# over unknown ones, i.e. start it again right away. # over unknown ones, i.e. start it again right away.
old_server = self.interface.server old_server = self.interface.server
self.close_interface(self.interface) 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.start_interface(old_server)
self.interface = i self.interface = i

Loading…
Cancel
Save