Skip to content

Commit

Permalink
Fixed cancel crash
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteJobi committed Jun 17, 2023
1 parent 22b02e0 commit a7cd768
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Upscaler/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ private void CancelButton_Click(object? sender, EventArgs e)
void Cancel()
{
currentProcess.Kill();
currentProcess.WaitForExit();
hasBeenKilled = true;
cancelButton.Click -= CancelButton_Click;
Reset(null, EventArgs.Empty);
Expand Down

0 comments on commit a7cd768

Please sign in to comment.