1
This commit is contained in:
parent
523420bb8f
commit
8be63ace09
@ -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", {});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user