From e8bc025f5cbcd82590800bcbd195861a45d42edd Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 19 Oct 2018 18:10:04 +0200 Subject: [PATCH] verifier: fix race in __init__ --- electrum/synchronizer.py | 2 +- electrum/verifier.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/synchronizer.py b/electrum/synchronizer.py index e5fd0f83f..90160ae9a 100644 --- a/electrum/synchronizer.py +++ b/electrum/synchronizer.py @@ -48,8 +48,8 @@ class SynchronizerBase(NetworkJobOnDefaultServer): Every time a status changes, run a coroutine provided by the subclass. """ def __init__(self, network): - NetworkJobOnDefaultServer.__init__(self, network) self.asyncio_loop = network.asyncio_loop + NetworkJobOnDefaultServer.__init__(self, network) def _reset(self): super()._reset() diff --git a/electrum/verifier.py b/electrum/verifier.py index 3c070776c..c6648c7cd 100644 --- a/electrum/verifier.py +++ b/electrum/verifier.py @@ -44,8 +44,8 @@ class SPV(NetworkJobOnDefaultServer): """ Simple Payment Verification """ def __init__(self, network, wallet): - NetworkJobOnDefaultServer.__init__(self, network) self.wallet = wallet + NetworkJobOnDefaultServer.__init__(self, network) def _reset(self): super()._reset()