Skip to content

Commit

Permalink
Tweak cancellation logic
Browse files Browse the repository at this point in the history
Don't call on_exit if the user ever requested cancellation.

For #19
  • Loading branch information
peterstory committed Jul 8, 2024
1 parent 2b5a21e commit e733011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pydiode/gui/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def check_subprocesses(
# Mark this cancellation request as handled
cancelled.set(False)
# Don't call on_exit if the user requested cancellation
on_exit = None if cancel_signal == signal.SIGINT else on_exit
on_exit = None if pipeline.cancelled else on_exit
# At the next check, hopefully the processes will have exited
widget.after(
SLEEP,
Expand Down

0 comments on commit e733011

Please sign in to comment.