forked from goodboy/tractor
1
0
Fork 0

Don't shield on root cancel it can causes hangs

debugger_hardening
Tyler Goodlet 2021-05-30 11:32:33 -04:00
parent 9f1f956902
commit 2b4cf6157a
1 changed files with 1 additions and 2 deletions

View File

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