aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/Brokenithm-Evolved-iOS/Program.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/server/Brokenithm-Evolved-iOS/Program.cs b/server/Brokenithm-Evolved-iOS/Program.cs
index f6785cb..931ad63 100644
--- a/server/Brokenithm-Evolved-iOS/Program.cs
+++ b/server/Brokenithm-Evolved-iOS/Program.cs
@@ -4,11 +4,9 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO.MemoryMappedFiles;
-using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading;
-using System.Threading.Tasks;
namespace Brokenithm_Evolved_iOS
{
@@ -119,11 +117,16 @@ namespace Brokenithm_Evolved_iOS
try
{
Process processToKill = process_map[udid];
- if (!processToKill.HasExited)
+ Console.WriteLine($"destroying brokenithm-evolved-umi server");
+ Process.Start(new ProcessStartInfo
{
- processToKill.Kill();
- }
- processToKill.Dispose();
+ FileName = "taskkill",
+ Arguments = $"/IM brokenithm-evolved-umi.exe /F",
+ RedirectStandardOutput = true,
+ RedirectStandardError = true,
+ UseShellExecute = false,
+ CreateNoWindow = true
+ }).WaitForExit();
process_map.Remove(udid);
}
catch (Exception ex)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage