Skip to content

Commit

Permalink
Don't pop a child entry that was never inserted
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Oct 15, 2021
1 parent 5d827f7 commit 5cfac58
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tractor/_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 5cfac58

Please sign in to comment.