forked from goodboy/tractor
Don't shield on root cancel it can causes hangs
parent
b02731ca75
commit
dc6fe3137c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue