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