Skip to content

Commit

Permalink
Now ZipExtractor only checks processes with executable name. (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
khengkiatsu authored Sep 15, 2020
1 parent f112bca commit fc443c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZipExtractor/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void FormMain_Shown(object sender, EventArgs e)

_backgroundWorker.DoWork += (o, eventArgs) =>
{
foreach (var process in Process.GetProcesses())
foreach (var process in Process.GetProcessesByName(Path.GetFileNameWithoutExtension(executablePath)))
{
try
{
Expand Down Expand Up @@ -275,4 +275,4 @@ private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
_logBuilder.ToString());
}
}
}
}

0 comments on commit fc443c8

Please sign in to comment.