Browse Source

make sure to retry nodes for network

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

8
electrum/network.py

@ -854,10 +854,10 @@ class Network(PrintError):
for i in range(self.num_server - len(self.interfaces) - len(self.connecting)):
if self.start_random_interface():
changed = True
if now - self.nodes_retry_time > NODES_RETRY_INTERVAL:
self.print_error('network: retrying connections')
self.disconnected_servers = set([])
self.nodes_retry_time = now
if now - self.nodes_retry_time > NODES_RETRY_INTERVAL:
self.print_error('network: retrying connections')
self.disconnected_servers = set([])
self.nodes_retry_time = now
# main interface
if not self.is_connected():

Loading…
Cancel
Save