WaitForExit增加超时

This commit is contained in:
陈国伟 2021-07-30 11:02:06 +08:00
parent 7488e9522f
commit f84b9e5af8
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ namespace FastGithub.Dns
{
var proess = Process.GetProcessById(pid);
proess.Kill();
proess.WaitForExit();
proess.WaitForExit(1000);
return true;
}
catch (ArgumentException)

View File

@ -36,7 +36,7 @@ namespace FastGithub.ReverseProxy
{
var proess = Process.GetProcessById(pid);
proess.Kill();
proess.WaitForExit();
proess.WaitForExit(1000);
return true;
}
catch (ArgumentException)