mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
bruh
This commit is contained in:
parent
a7e28200a9
commit
5cabf015a4
@ -701,18 +701,16 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
foreach (Process process in processes)
|
foreach (Process process in processes)
|
||||||
{
|
{
|
||||||
string? processPath = process.MainModule?.FileName;
|
try
|
||||||
if (processPath != null && processPath.StartsWith(path))
|
|
||||||
{
|
{
|
||||||
try
|
string? processPath = process.MainModule?.FileName;
|
||||||
{
|
if (processPath != null && processPath.StartsWith(path))
|
||||||
process.Kill();
|
process.Kill();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
App.Logger.WriteLine(LOG_IDENT, $"Failed to close process {process.Id} at {processPath}");
|
App.Logger.WriteLine(LOG_IDENT, $"Failed to close process {process.Id}");
|
||||||
App.Logger.WriteException(LOG_IDENT, ex);
|
App.Logger.WriteException(LOG_IDENT, ex);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user