alroyso 1 년 전
부모
커밋
529c7ab38b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);