forked from LBRYCommunity/lbry-sdk
add header sync to update tasks so it can be cancelled
This commit is contained in:
parent
bff9117360
commit
4208876ef3
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class BaseLedger(metaclass=LedgerRegistry):
|
|||
asyncio.ensure_future(self.network.start())
|
||||
await first_connection
|
||||
async with self._header_processing_lock:
|
||||
await self.initial_headers_sync()
|
||||
await self._update_tasks.add(self.initial_headers_sync())
|
||||
await self.join_network()
|
||||
self.network.on_connected.listen(self.join_network)
|
||||
|
||||
|
|
Loading…
Reference in a new issue