aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-01-23 01:21:02 -0800
committerPinapelz <yukais@pinapelz.com>2025-01-23 01:23:37 -0800
commit3eaf1037daadc33ae714515a9521a1ddccb29488 (patch)
tree7f6a9fb4f777af53077db698b619489c3a4a1062 /server
parent19721fb23129f8367bef0c598976608e52d1bd3f (diff)
fix: bridge not closing on device disconnect
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