删除埋点,im和客服
This commit is contained in:
@@ -12,7 +12,7 @@ class LocalServerGuard {
|
||||
bool _running = false;
|
||||
bool _checking = false;
|
||||
|
||||
LocalServerGuard(this.cacheServer) : assert(cacheServer != null);
|
||||
LocalServerGuard(this.cacheServer);
|
||||
|
||||
/// 运行localserver守护
|
||||
Future run() async {
|
||||
@@ -28,14 +28,12 @@ class LocalServerGuard {
|
||||
_checking = true;
|
||||
// csPrint("local_server_gard is called");
|
||||
Uri uri = cacheServer.localServerUri;
|
||||
if (uri != null) {
|
||||
uri = uri.replace(path: LOCAL_SERVER_PING_PATH);
|
||||
var options = Options(responseType: ResponseType.bytes);
|
||||
// l.i(local_server_tag, "begin ping local server");
|
||||
final response = await _dio.getBytes(uri.toString(), options: options);
|
||||
// l.i(local_server_tag, "end ping local server");
|
||||
if ((response.data?.statusCode ?? 0) > 0) return;
|
||||
}
|
||||
uri = uri.replace(path: LOCAL_SERVER_PING_PATH);
|
||||
var options = Options(responseType: ResponseType.bytes);
|
||||
// l.i(local_server_tag, "begin ping local server");
|
||||
final response = await _dio.getBytes(uri.toString(), options: options);
|
||||
// l.i(local_server_tag, "end ping local server");
|
||||
if ((response.data?.statusCode ?? 0) > 0) return;
|
||||
await cacheServer.start();
|
||||
} catch (e) {
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user