Browse Source

network: send out 'interfaces' event on new_interface

network dialog was not always showing up-to-date data
3.3.3.1
SomberNight 6 years ago
parent
commit
54cc822227
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/network.py

5
electrum/network.py

@ -636,8 +636,9 @@ class Network(PrintError):
self.add_recent_server(server)
interface = Interface(self, server, self.config.path, self.proxy)
timeout = 10 if not self.proxy else 20
try:
await asyncio.wait_for(interface.ready, 5)
await asyncio.wait_for(interface.ready, timeout)
except BaseException as e:
#import traceback
#traceback.print_exc()
@ -654,7 +655,7 @@ class Network(PrintError):
if server == self.default_server:
self.switch_to_interface(server)
#self.notify('interfaces')
self.notify('interfaces')
def init_headers_file(self):
b = blockchain.blockchains[0]

Loading…
Cancel
Save