Don't shield on root cancel it can causes hangs

stdstream_clobber_fix
Tyler Goodlet 2021-05-30 11:32:33 -04:00
parent 1335a6f043
commit cdddf54b1d
1 changed files with 1 additions and 2 deletions

View File

@ -174,8 +174,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")