From 30ce568478b6f76f32f5ad03ce2ef64c99302f7e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 5 Dec 2023 21:35:37 +0800 Subject: [PATCH] 1 --- server/robotserver/android_agent.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/robotserver/android_agent.cc b/server/robotserver/android_agent.cc index b1f39c1e..1b3ac7c7 100644 --- a/server/robotserver/android_agent.cc +++ b/server/robotserver/android_agent.cc @@ -133,14 +133,14 @@ behaviac::EBTStatus AndroidAgent::CoConnectBattleServer() { a8::XPrintf("WebSocketClient on_error:%d\n", {err_code}); context->pending = false; - context->connect_ok = true; + context->connect_ok = false; }; owner_->GetWebSocket()->on_connect = [this, context] (a8::WebSocketClient* ) { a8::XPrintf("WebSocketClient on_connect\n", {}); context->pending = false; - context->connect_ok = false; + context->connect_ok = true; }; owner_->GetWebSocket()->on_disconnect = [this, context] (a8::WebSocketClient* )