mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
verifier: fix race in __init__
This commit is contained in:
parent
1526fd3722
commit
e8bc025f5c
2 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ class SynchronizerBase(NetworkJobOnDefaultServer):
|
||||||
Every time a status changes, run a coroutine provided by the subclass.
|
Every time a status changes, run a coroutine provided by the subclass.
|
||||||
"""
|
"""
|
||||||
def __init__(self, network):
|
def __init__(self, network):
|
||||||
NetworkJobOnDefaultServer.__init__(self, network)
|
|
||||||
self.asyncio_loop = network.asyncio_loop
|
self.asyncio_loop = network.asyncio_loop
|
||||||
|
NetworkJobOnDefaultServer.__init__(self, network)
|
||||||
|
|
||||||
def _reset(self):
|
def _reset(self):
|
||||||
super()._reset()
|
super()._reset()
|
||||||
|
|
|
@ -44,8 +44,8 @@ class SPV(NetworkJobOnDefaultServer):
|
||||||
""" Simple Payment Verification """
|
""" Simple Payment Verification """
|
||||||
|
|
||||||
def __init__(self, network, wallet):
|
def __init__(self, network, wallet):
|
||||||
NetworkJobOnDefaultServer.__init__(self, network)
|
|
||||||
self.wallet = wallet
|
self.wallet = wallet
|
||||||
|
NetworkJobOnDefaultServer.__init__(self, network)
|
||||||
|
|
||||||
def _reset(self):
|
def _reset(self):
|
||||||
super()._reset()
|
super()._reset()
|
||||||
|
|
Loading…
Add table
Reference in a new issue