Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Dec 27, 2024
1 parent a7e2820 commit 5cabf01
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Bloxstrap/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -701,18 +701,16 @@ private void KillRunningRobloxInDirectory(string path)

foreach (Process process in processes)
{
string? processPath = process.MainModule?.FileName;
if (processPath != null && processPath.StartsWith(path))
try
{
try
{
string? processPath = process.MainModule?.FileName;
if (processPath != null && processPath.StartsWith(path))
process.Kill();
}
catch (Exception ex)
{
App.Logger.WriteLine(LOG_IDENT, $"Failed to close process {process.Id} at {processPath}");
App.Logger.WriteException(LOG_IDENT, ex);
}
}
catch (Exception ex)
{
App.Logger.WriteLine(LOG_IDENT, $"Failed to close process {process.Id}");
App.Logger.WriteException(LOG_IDENT, ex);
}
}
}
Expand Down

0 comments on commit 5cabf01

Please sign in to comment.