This commit is contained in:
azw 2023-08-19 10:30:54 +08:00
parent 523420bb8f
commit 8be63ace09

View File

@ -59,16 +59,12 @@ void Player::CoLogin(f8::Coroutine* co)
};
web_socket_->Open();
co->CoAwait
(f8::CoMgr::Instance()->CreateCo
(
[this] (f8::Coroutine* co)
{
while (!net_connected_) {
co->CoYield();
}
}
).lock());
{
while (!net_connected_) {
co->CoYield();
}
}
f8::UdpLog::Instance()->Info
("WebSocketClient on_connect ok", {});
}