This commit is contained in:
aozhiwei 2023-12-05 21:35:37 +08:00
parent 85b6c88a6d
commit 30ce568478

View File

@ -133,14 +133,14 @@ behaviac::EBTStatus AndroidAgent::CoConnectBattleServer()
{ {
a8::XPrintf("WebSocketClient on_error:%d\n", {err_code}); a8::XPrintf("WebSocketClient on_error:%d\n", {err_code});
context->pending = false; context->pending = false;
context->connect_ok = true; context->connect_ok = false;
}; };
owner_->GetWebSocket()->on_connect = owner_->GetWebSocket()->on_connect =
[this, context] (a8::WebSocketClient* ) [this, context] (a8::WebSocketClient* )
{ {
a8::XPrintf("WebSocketClient on_connect\n", {}); a8::XPrintf("WebSocketClient on_connect\n", {});
context->pending = false; context->pending = false;
context->connect_ok = false; context->connect_ok = true;
}; };
owner_->GetWebSocket()->on_disconnect = owner_->GetWebSocket()->on_disconnect =
[this, context] (a8::WebSocketClient* ) [this, context] (a8::WebSocketClient* )