aboutsummaryrefslogtreecommitdiffstats
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
parent19721fb23129f8367bef0c598976608e52d1bd3f (diff)
fix: bridge not closing on device disconnect
-rw-r--r--README.md6
-rw-r--r--server/Brokenithm-Evolved-iOS/Program.cs15
2 files changed, 14 insertions, 7 deletions
diff --git a/README.md b/README.md
index 8526fce..3534b10 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,9 @@
# Brokenithm-Evolved-iOS-Umi
-A version of [esterTion/Brokenithm-iOS](https://github.com/esterTion/Brokenithm-iOS) but maps inputs to keybinds and has support for slider LEDs based on the [Umiguri LED Controller Protocol](https://gist.github.com/inonote/00251fed881a82c9df1e505eef1722bc)
+A version of [esterTion/Brokenithm-iOS](https://github.com/esterTion/Brokenithm-iOS) but maps inputs to keybinds and has support for slider LEDs based on the [Umiguri LED Controller Protocol]
+
+Allows you to use a wired Brokenithm connection with Umiguri and also get all the flashy lights
+
+(https://gist.github.com/inonote/00251fed881a82c9df1e505eef1722bc)
[![Demo](https://files.catbox.moe/w3564o.png)](https://files.catbox.moe/oz9kos.mp4)
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