WaitForExit增加超时
This commit is contained in:
parent
7488e9522f
commit
f84b9e5af8
@ -36,7 +36,7 @@ namespace FastGithub.Dns
|
||||
{
|
||||
var proess = Process.GetProcessById(pid);
|
||||
proess.Kill();
|
||||
proess.WaitForExit();
|
||||
proess.WaitForExit(1000);
|
||||
return true;
|
||||
}
|
||||
catch (ArgumentException)
|
||||
|
||||
@ -36,7 +36,7 @@ namespace FastGithub.ReverseProxy
|
||||
{
|
||||
var proess = Process.GetProcessById(pid);
|
||||
proess.Kill();
|
||||
proess.WaitForExit();
|
||||
proess.WaitForExit(1000);
|
||||
return true;
|
||||
}
|
||||
catch (ArgumentException)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user