forked from goodboy/tractor
1
0
Fork 0

Don't shield on root cancel it can causes hangs

ctx_debugger_from_hardening
Tyler Goodlet 2021-05-30 11:32:33 -04:00
parent 625fc87410
commit 65aa1f3e2a
1 changed files with 1 additions and 2 deletions

View File

@ -179,8 +179,7 @@ async def open_root_actor(
finally:
logger.info("Shutting down root actor")
with trio.CancelScope(shield=True):
await actor.cancel()
await actor.cancel()
finally:
_state._current_actor = None
logger.info("Root actor terminated")