mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
interface: if iface conn fails early, don't wait for timeout of 'ready'
Network code is waiting for iface.ready with a timeout. While network.py code is waiting, the already failed iface takes up a slot in "connecting".
This commit is contained in:
parent
a2f477b679
commit
3b1ece4c70
1 changed files with 2 additions and 0 deletions
|
@ -299,6 +299,8 @@ class Interface(PrintError):
|
|||
finally:
|
||||
await self.network.connection_down(self)
|
||||
self.got_disconnected.set_result(1)
|
||||
# if was not 'ready' yet, schedule waiting coroutines:
|
||||
self.ready.cancel()
|
||||
return wrapper_func
|
||||
|
||||
@ignore_exceptions # do not kill main_taskgroup
|
||||
|
|
Loading…
Add table
Reference in a new issue