1
This commit is contained in:
parent
289c19b307
commit
f3d2824649
@ -124,23 +124,16 @@ behaviac::EBTStatus AndroidAgent::CoConnectBattleServer()
|
|||||||
context->old_on_connect = owner_->GetWebSocket()->on_connect;
|
context->old_on_connect = owner_->GetWebSocket()->on_connect;
|
||||||
context->old_on_disconnect = owner_->GetWebSocket()->on_disconnect;
|
context->old_on_disconnect = owner_->GetWebSocket()->on_disconnect;
|
||||||
owner_->GetWebSocket()->on_error =
|
owner_->GetWebSocket()->on_error =
|
||||||
[this] (a8::WebSocketClient*,int err_code)
|
[this, context] (a8::WebSocketClient*,int err_code)
|
||||||
{
|
{
|
||||||
f8::UdpLog::Instance()->Warning
|
|
||||||
("WebSocketClient on_error %d", {err_code});
|
|
||||||
};
|
};
|
||||||
owner_->GetWebSocket()->on_connect =
|
owner_->GetWebSocket()->on_connect =
|
||||||
[this] (a8::WebSocketClient* )
|
[this, context] (a8::WebSocketClient* )
|
||||||
{
|
{
|
||||||
//net_connected_ = true;
|
|
||||||
f8::UdpLog::Instance()->Info
|
|
||||||
("WebSocketClient on_connect", {});
|
|
||||||
};
|
};
|
||||||
owner_->GetWebSocket()->on_disconnect =
|
owner_->GetWebSocket()->on_disconnect =
|
||||||
[this] (a8::WebSocketClient* )
|
[this, context] (a8::WebSocketClient* )
|
||||||
{
|
{
|
||||||
f8::UdpLog::Instance()->Warning
|
|
||||||
("WebSocketClient on_disconnect", {});
|
|
||||||
};
|
};
|
||||||
return behaviac::BT_SUCCESS;
|
return behaviac::BT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user