forked from goodboy/tractor
1
0
Fork 0

Don't pop a child entry that was never inserted

immediate_remote_cancels
Tyler Goodlet 2021-10-15 17:54:45 -04:00
parent 5d827f78e2
commit 5cfac58873
1 changed files with 5 additions and 2 deletions

View File

@ -326,8 +326,11 @@ async def new_proc(
await do_hard_kill(proc)
log.debug(f"Joined {proc}")
# pop child entry to indicate we no longer managing this subactor
subactor, proc, portal = actor_nursery._children.pop(subactor.uid)
if not cancelled_during_spawn:
# pop child entry to indicate we no longer managing this
# subactor
actor_nursery._children.pop(subactor.uid)
else:
# `multiprocessing`