Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
close and dispose process if it's killed
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Sep 11, 2019
1 parent 4c202c6 commit 0be0ae8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Extensions/ProcessExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ void ProcessWatcher()
if (cancellationToken.IsCancellationRequested)
{
runningProcess.Kill();
runningProcess.Close();
runningProcess.Dispose();
}
}
}
Expand Down

0 comments on commit 0be0ae8

Please sign in to comment.