forked from goodboy/tractor
Don't shield on root cancel it can causes hangs
parent
d0cf64361a
commit
664c3d6b21
|
@ -174,8 +174,7 @@ 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
|
||||||
logger.info("Root actor terminated")
|
logger.info("Root actor terminated")
|
||||||
|
|
Loading…
Reference in New Issue