From f84b9e5af898e78c8e955cbd89663101fc14670d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Fri, 30 Jul 2021 11:02:06 +0800 Subject: [PATCH] =?UTF-8?q?WaitForExit=E5=A2=9E=E5=8A=A0=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Dns/UdpTable.cs | 2 +- FastGithub.ReverseProxy/TcpTable.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FastGithub.Dns/UdpTable.cs b/FastGithub.Dns/UdpTable.cs index 3a5eb9b..cae275c 100644 --- a/FastGithub.Dns/UdpTable.cs +++ b/FastGithub.Dns/UdpTable.cs @@ -36,7 +36,7 @@ namespace FastGithub.Dns { var proess = Process.GetProcessById(pid); proess.Kill(); - proess.WaitForExit(); + proess.WaitForExit(1000); return true; } catch (ArgumentException) diff --git a/FastGithub.ReverseProxy/TcpTable.cs b/FastGithub.ReverseProxy/TcpTable.cs index 47c7dea..227e321 100644 --- a/FastGithub.ReverseProxy/TcpTable.cs +++ b/FastGithub.ReverseProxy/TcpTable.cs @@ -36,7 +36,7 @@ namespace FastGithub.ReverseProxy { var proess = Process.GetProcessById(pid); proess.Kill(); - proess.WaitForExit(); + proess.WaitForExit(1000); return true; } catch (ArgumentException)