Skip to content

Commit

Permalink
Also kill subprocesses when not running on .net stndard 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kees committed May 3, 2022
1 parent 9bb54bf commit e82ba60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChromeHtmlToPdfLib/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,11 @@ private void KillProcessAndChildren(int processId)
try
{
var process = Process.GetProcessById(processId);
#if (NETSTANDARD2_0)
process.Kill();
#else
process.Kill(true);
#endif
}
catch (Exception exception)
{
Expand Down

0 comments on commit e82ba60

Please sign in to comment.