From 3f2e33a12056a9382c550e5793cc45fc5e613071 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 11 Nov 2022 17:56:12 -0500 Subject: [PATCH] Don't unset actor global on root teardown --- tractor/_root.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tractor/_root.py b/tractor/_root.py index 840b288..4a5a3ba 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -253,7 +253,6 @@ async def open_root_actor( logger.cancel("Shutting down root actor") await actor.cancel() finally: - _state._current_actor = None logger.runtime("Root actor terminated")