|
@@ -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);
|