fix daemon (don't close instantly)

follow-up 37747d7469
This commit is contained in:
SomberNight 2020-01-11 00:04:00 +01:00
parent 4fd2745332
commit a6dd17bfef
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -315,6 +315,7 @@ class Daemon(Logger):
try:
async with self.taskgroup as group:
[await group.spawn(job) for job in jobs]
await group.spawn(asyncio.Event().wait) # run forever (until cancel)
except BaseException as e:
self.logger.exception('daemon.taskgroup died.')
finally: