|
@@ -232,7 +232,6 @@ class ServiceController extends GetxController {
|
|
|
while (true) {
|
|
|
await Future.delayed(const Duration(milliseconds: 200));
|
|
|
final info = await fetchInfo();
|
|
|
- print("core --- info $info");
|
|
|
if (info.status == 'running') {
|
|
|
try {
|
|
|
final ret = await controllers.core.fetchHello();
|
|
@@ -244,7 +243,7 @@ class ServiceController extends GetxController {
|
|
|
}
|
|
|
} else {
|
|
|
controllers.global.updateMsg("启动内核错误---等待中...");
|
|
|
- throw 'clash-core start error';
|
|
|
+ throw '启动内核错误,请检测是否被杀毒拦截,或者端口是否被占用';
|
|
|
}
|
|
|
}
|
|
|
await controllers.core.updateConfig();
|
|
@@ -261,7 +260,7 @@ class ServiceController extends GetxController {
|
|
|
} catch (e) {
|
|
|
log.error("core -- $e");
|
|
|
controllers.global.updateMsg("启动内核错误");
|
|
|
- controllers.global.handleApiError(e);
|
|
|
+ //controllers.global.handleApiError(e);
|
|
|
// BotToast.showText(text: e.toString());
|
|
|
coreStatus.value = RunningState.error;
|
|
|
}
|