From 2ed9e65530e8ece738b57cb1c8a473404ed45815 Mon Sep 17 00:00:00 2001 From: goodboy Date: Wed, 11 Feb 2026 18:30:07 -0500 Subject: [PATCH] Clear rtvs state on root shutdown.. Fixes the bug discovered in last test update, not sure how this wasn't caught already XD --- tractor/_root.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tractor/_root.py b/tractor/_root.py index 2330449a..f480a619 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -616,6 +616,13 @@ async def open_root_actor( ): _state._runtime_vars['_debug_mode'] = False + # !XXX, clear ALL prior contact info state, this is MEGA + # important if you are opening the runtime multiple times + # from the same parent process (like in our test + # harness)! + _state._runtime_vars['_root_addrs'].clear() + _state._runtime_vars['_root_mailbox'] = None + _state._current_actor = None _state._last_actor_terminated = actor