Add logging to KillProcess
Some checks failed
release Linux / build (Release) (push) Has been cancelled
release macOS / build (Release) (push) Has been cancelled
release Windows / build (Release) (push) Has been cancelled

https://github.com/2dust/v2rayN/issues/6386
This commit is contained in:
2dust 2025-01-02 13:54:17 +08:00
parent 7884853098
commit 02a13ce028

View file

@ -327,9 +327,10 @@ namespace ServiceLib.Handler
{ {
return null; return null;
} }
try { proc?.Kill(true); } catch { } try { proc?.Kill(true); } catch (Exception ex) { Logging.SaveLog(ex.Message, ex); }
try { proc?.Close(); } catch { } try { proc?.Kill(); } catch (Exception ex) { Logging.SaveLog(ex.Message, ex); }
try { proc?.Dispose(); } catch { } try { proc?.Close(); } catch (Exception ex) { Logging.SaveLog(ex.Message, ex); }
try { proc?.Dispose(); } catch (Exception ex) { Logging.SaveLog(ex.Message, ex); }
await Task.Delay(100); await Task.Delay(100);
return null; return null;