From b83f6d6c3d21acc17dc1e0419a82b3477fa5fe95 Mon Sep 17 00:00:00 2001 From: Connection Refused Date: Fri, 8 May 2020 16:41:39 +0800 Subject: [PATCH] Fix trojan not exit --- Netch/Controllers/TrojanController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Netch/Controllers/TrojanController.cs b/Netch/Controllers/TrojanController.cs index 8a43b045..709c221f 100644 --- a/Netch/Controllers/TrojanController.cs +++ b/Netch/Controllers/TrojanController.cs @@ -92,7 +92,10 @@ namespace Netch.Controllers if (Instance != null && !Instance.HasExited) { Instance.Kill(); + Instance.WaitForExit(); } + + Process.Start("cmd.exe", "/c taskkill /f /t /im Trojan.exe").WaitForExit(); } catch (Exception e) {