Skip to content

Commit

Permalink
Update CoreBots.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wtffidy committed Nov 9, 2024
1 parent feb17f5 commit 816c4b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CoreBots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6120,15 +6120,15 @@ public void UsePotion()
Bot.Flash.CallGameFunction("world.testAction", JsonConvert.DeserializeObject<ExpandoObject>(JsonConvert.SerializeObject(skill)));
}

private void ShutdownSkua() // law asked for this. - not to be used publicly.
private void ShutdownSkua()
{
Process[] processes = Process.GetProcessesByName("Skua");
foreach (Process process in processes)
Process currentProcess = Process.GetCurrentProcess();
if (currentProcess.ProcessName == "Skua")
{
// Releases lingering resources, reducing memory usage before termination.
GC.Collect();
//terminate the process
process.Kill();
currentProcess.Kill();
}
}

Expand Down

0 comments on commit 816c4b4

Please sign in to comment.