From a6dd17bfef29bd7b713af4e74063b666c29dfe8d Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 11 Jan 2020 00:04:00 +0100 Subject: [PATCH] fix daemon (don't close instantly) follow-up 37747d74695daf000ffb0db9626191193a6b0555 --- electrum/daemon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/daemon.py b/electrum/daemon.py index c5a175a7a..3b5f09f73 100644 --- 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: