From a7abfdd5e28cc34cc85413989869482c0f566f8f 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")