alroyso 1 year ago
parent
commit
529c7ab38b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/app/modules/home/controllers/home_controller.dart

+ 2 - 2
lib/app/modules/home/controllers/home_controller.dart

@@ -200,8 +200,8 @@ class HomeController extends GetxController {
     await controllers.tray.updateTray();
     // // 停止服务
     await controllers.service.stopClash();
-    controllers.global.updateMsg("正在停止.等待5秒防止端口无法释放");
-    Future.delayed(const Duration(seconds: 5), () async {
+    //controllers.global.updateMsg("正在停止....");
+    Future.delayed(const Duration(seconds: 1), () async {
       controllers.global.allowStatusUpdate = false;
       isConnect.value = false;
       updateStatus(ConnectionStatus.disconnected);