From 664c3d6b21a7de148cae6f06e405ae78942e1abc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 30 May 2021 11:32:33 -0400 Subject: [PATCH] Don't shield on root cancel it can causes hangs --- tractor/_root.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tractor/_root.py b/tractor/_root.py index 8f4eb9a..6013d50 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -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")