Clear rtvs state on root shutdown..

Fixes the bug discovered in last test update, not sure how this wasn't
caught already XD
root_actor_raddrs_fix
Gud Boi 2026-02-11 18:30:07 -05:00
parent 6cab363c51
commit 2ed9e65530
1 changed files with 7 additions and 0 deletions

View File

@ -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