alroyso 1 year ago
parent
commit
22cd13d174
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lib/app/controller/GlobalController.dart

+ 4 - 1
lib/app/controller/GlobalController.dart

@@ -420,7 +420,10 @@ class GlobalController extends GetxController {
   Future<void> stopAllCore() async {
     await systemProxySwitch(false);
     await controllers.service.stopClashCore();
-    await killProcess(path.basename(Files.assetsCCore.path));
+    if(!controllers.service.serviceMode.value){{
+      await killProcess(path.basename(Files.assetsCCore.path));
+    }}
+
     if(!controllers.service.serviceMode.value){
       await killProcess(path.basename(Files.assetsClashService.path));
     }