electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 3b1ece4c7000ba4132e0b737f15de0cd9abb8bea
parent a2f477b6795175edfe01d6567b3f3a8e98eec552
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon, 18 Mar 2019 21:34:01 +0100

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".

Diffstat:
Melectrum/interface.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/electrum/interface.py b/electrum/interface.py @@ -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