commit a6dd17bfef29bd7b713af4e74063b666c29dfe8d
parent 4fd2745332c0c3a9731e27c5cad707c20182f817
Author: SomberNight <somber.night@protonmail.com>
Date: Sat, 11 Jan 2020 00:04:00 +0100
fix daemon (don't close instantly)
follow-up 37747d74695daf000ffb0db9626191193a6b0555
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/electrum/daemon.py b/electrum/daemon.py
@@ -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: