Don't shield on root cancel it can causes hangs

wip_fix_asyncio_gen_streaming
Tyler Goodlet 2021-05-30 11:32:33 -04:00
parent 0d0e0bc2da
commit 5b3f554f57
1 changed files with 1 additions and 2 deletions

View File

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