From 5cabf015a4c27d6ed3b623d783ed657306e5a4b4 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Fri, 27 Dec 2024 20:36:37 +0000 Subject: [PATCH] bruh --- Bloxstrap/Bootstrapper.cs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 010b16c7..c929ffa1 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -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); } } }