This commit is contained in:
2dust
2025-10-01 20:17:26 +08:00
parent 5b12c36da5
commit 12cc09d0c9

View File

@@ -88,18 +88,12 @@ public class ProcessService : IDisposable
{
_process.CancelOutputRead();
}
catch
{
throw;
}
catch { }
try
{
_process.CancelErrorRead();
}
catch
{
throw;
}
catch { }
}
try
@@ -109,19 +103,13 @@ public class ProcessService : IDisposable
_process.Kill(true);
}
}
catch
{
throw;
}
catch { }
try
{
_process.Kill();
}
catch
{
throw;
}
catch { }
await Task.Delay(100);
}