tinterface: if iface conn fails early, don't wait for timeout of 'ready' - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3b1ece4c7000ba4132e0b737f15de0cd9abb8bea DIR parent a2f477b6795175edfe01d6567b3f3a8e98eec552 HTML 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: M electrum/interface.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum/interface.py b/electrum/interface.py t@@ -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