Skip to content

Commit

Permalink
fix: termination condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Jun 25, 2024
1 parent 128aa5a commit 946658c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netsim/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def run(nodes, prefix, args, debug=False, visualize=False):
if r is None:
p.terminate()
process_errors.append('Process has timed out: %s' % prefix)
if r != 0:
elif r != 0:
process_errors.append('Process has failed: %s with exit code: %d' % (prefix, r))
else:
p.terminate()
Expand Down

0 comments on commit 946658c

Please sign in to comment.