From 2b4cf6157a453f9e5e189afa5a8c9b2781f76479 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 f5bd778..da4ba68 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -179,8 +179,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")