Skip to content

Commit

Permalink
Fix: forget_vm called twice when VM init times out
Browse files Browse the repository at this point in the history
Solution: Allow execution to be already missing.
  • Loading branch information
hoh committed Feb 10, 2022
1 parent 4441867 commit e6c4ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm_supervisor/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def get_running_vm(self, vm_hash: VmHash) -> Optional[VmExecution]:
return None

def forget_vm(self, vm_hash: VmHash) -> None:
self.executions.pop(vm_hash)
self.executions.pop(vm_hash, None)

async def stop(self):
"""Stop all VMs in the pool."""
Expand Down

0 comments on commit e6c4ee5

Please sign in to comment.