mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-07 13:05:00 +03:00
Refactor KillProcess
This commit is contained in:
@@ -216,7 +216,7 @@ namespace ServiceLib.Services
|
||||
{
|
||||
if (pid > 0)
|
||||
{
|
||||
await CoreHandler.Instance.CoreStopPid(pid);
|
||||
await ProcUtils.ProcessKill(pid);
|
||||
}
|
||||
await ProfileExHandler.Instance.SaveTo();
|
||||
}
|
||||
@@ -278,7 +278,7 @@ namespace ServiceLib.Services
|
||||
|
||||
if (pid > 0)
|
||||
{
|
||||
await CoreHandler.Instance.CoreStopPid(pid);
|
||||
await ProcUtils.ProcessKill(pid);
|
||||
}
|
||||
await ProfileExHandler.Instance.SaveTo();
|
||||
}
|
||||
@@ -342,7 +342,7 @@ namespace ServiceLib.Services
|
||||
|
||||
if (pid > 0)
|
||||
{
|
||||
await CoreHandler.Instance.CoreStopPid(pid);
|
||||
await ProcUtils.ProcessKill(pid);
|
||||
}
|
||||
await ProfileExHandler.Instance.SaveTo();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user