This commit is contained in:
Jack Robison 2022-04-02 10:21:37 -04:00
parent e07c3d39dc
commit ba2e2a1dcc
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -85,10 +85,8 @@ class BlockchainService:
async def _run(self): async def _run(self):
try: try:
await self.start() await self.start()
self.log.info("finished start(), waiting for shutdown event")
await self.shutdown_event.wait() await self.shutdown_event.wait()
except (SystemExit, KeyboardInterrupt, asyncio.CancelledError): except (SystemExit, KeyboardInterrupt, asyncio.CancelledError):
self.log.warning("exiting")
self._stopping = True self._stopping = True
except Exception as err: except Exception as err:
self.log.exception("unexpected fatal error: %s", err) self.log.exception("unexpected fatal error: %s", err)