Wait briefly after sudo process kills

https://github.com/2dust/v2rayN/issues/9863
Add a short 1-second delay after terminating core processes on Linux, macOS, and in CoreAdminManager so ports and process resources have time to settle before the next step runs.
This commit is contained in:
2dust
2026-08-05 17:03:23 +08:00
parent b27ae11d1e
commit d381d429e4
3 changed files with 12 additions and 0 deletions
@@ -91,6 +91,8 @@ public class CoreAdminManager
.ExecuteBufferedAsync();
await UpdateFunc(false, result.StandardOutput.ToString());
await Task.Delay(1000); // Wait for a second to ensure the process is killed
}
catch (Exception ex)
{