Bug fix
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run

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(); _process.CancelOutputRead();
} }
catch catch { }
{
throw;
}
try try
{ {
_process.CancelErrorRead(); _process.CancelErrorRead();
} }
catch catch { }
{
throw;
}
} }
try try
@ -109,19 +103,13 @@ public class ProcessService : IDisposable
_process.Kill(true); _process.Kill(true);
} }
} }
catch catch { }
{
throw;
}
try try
{ {
_process.Kill(); _process.Kill();
} }
catch catch { }
{
throw;
}
await Task.Delay(100); await Task.Delay(100);
} }