From 622b9d13ee609c22c0ea608e7fc6abd2b1c9708d Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 23 Jan 2015 17:06:16 +0100 Subject: [PATCH] fix: start listener after testing if available --- plugins/cosigner_pool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/cosigner_pool.py b/plugins/cosigner_pool.py index fd20b06e3..dd851acd0 100644 --- a/plugins/cosigner_pool.py +++ b/plugins/cosigner_pool.py @@ -105,12 +105,12 @@ class Plugin(BasePlugin): @hook def load_wallet(self, wallet): - if self.listener is None: - self.listener = Listener(self) - self.listener.start() self.wallet = wallet if not self.is_available(): return + if self.listener is None: + self.listener = Listener(self) + self.listener.start() mpk = self.wallet.get_master_public_keys() self.cosigner_list = [] for key, xpub in mpk.items():