mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
network: send out 'interfaces' event on new_interface
network dialog was not always showing up-to-date data
This commit is contained in:
parent
e2338581eb
commit
54cc822227
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue