From 78a5a3379729e87dfe2b8a0981e92e86f5521466 Mon Sep 17 00:00:00 2001 From: wisdomwei201804 Date: Wed, 18 Jul 2018 16:48:25 +0800 Subject: [PATCH] =?UTF-8?q?v3.8.6.0=20=201=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E5=B0=86=E8=BD=AF=E4=BB=B6.net?= =?UTF-8?q?=E6=A1=86=E6=9E=B6=E7=89=88=E6=9C=AC=E7=94=B14.5=E9=99=8D?= =?UTF-8?q?=E4=BD=8E=E5=88=B04.0=EF=BC=8C=E5=8F=AF=E5=9C=A8WinXP=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E8=BF=90=E8=A1=8C=EF=BC=8CWinXP=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=9C=80=E9=AB=98=E6=94=AF=E6=8C=81.net=204.0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- net.nutcore.aliddns/net.nutcore.aliddns/NgrokHelper.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/net.nutcore.aliddns/net.nutcore.aliddns/NgrokHelper.cs b/net.nutcore.aliddns/net.nutcore.aliddns/NgrokHelper.cs index cd89611..62fd972 100644 --- a/net.nutcore.aliddns/net.nutcore.aliddns/NgrokHelper.cs +++ b/net.nutcore.aliddns/net.nutcore.aliddns/NgrokHelper.cs @@ -210,13 +210,12 @@ namespace net.nutcore.aliddns try { - Task task = Task.Factory.StartNew(() => + new Thread(() => { var proc = Process.Start(exec); proc.WaitForExit(); proc.Dispose(); - }); - task.Start(); + }).Start(); } catch (Exception ex) { @@ -228,7 +227,7 @@ namespace net.nutcore.aliddns { try { - Task task = Task.Factory.StartNew(() => + new Thread(() => { Process[] pList = Process.GetProcessesByName("Ngrok"); foreach (Process p in pList) @@ -238,8 +237,7 @@ namespace net.nutcore.aliddns p.WaitForExit(); p.Dispose(); } - }); - task.Start(); + }).Start(); } catch (Exception ex) {