Skip to content

Commit

Permalink
Assert running_procs is positive
Browse files Browse the repository at this point in the history
Signed-off-by: Bolun Thompson <[email protected]>
  • Loading branch information
BolunThompson committed Dec 29, 2024
1 parent 70073db commit 509fcf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/pash_compilation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def remove_process(self, process_id):
]
)

assert self.running_procs > 0
self.running_procs -= 1
if self.running_procs == 0:
self.unsafe_running = False
Expand Down

0 comments on commit 509fcf0

Please sign in to comment.