mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
parent
4fd2745332
commit
a6dd17bfef
1 changed files with 1 additions and 0 deletions
|
@ -315,6 +315,7 @@ class Daemon(Logger):
|
||||||
try:
|
try:
|
||||||
async with self.taskgroup as group:
|
async with self.taskgroup as group:
|
||||||
[await group.spawn(job) for job in jobs]
|
[await group.spawn(job) for job in jobs]
|
||||||
|
await group.spawn(asyncio.Event().wait) # run forever (until cancel)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
self.logger.exception('daemon.taskgroup died.')
|
self.logger.exception('daemon.taskgroup died.')
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Add table
Reference in a new issue