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* )