1
This commit is contained in:
parent
523420bb8f
commit
8be63ace09
@ -59,16 +59,12 @@ void Player::CoLogin(f8::Coroutine* co)
|
|||||||
};
|
};
|
||||||
web_socket_->Open();
|
web_socket_->Open();
|
||||||
|
|
||||||
co->CoAwait
|
|
||||||
(f8::CoMgr::Instance()->CreateCo
|
|
||||||
(
|
|
||||||
[this] (f8::Coroutine* co)
|
|
||||||
{
|
{
|
||||||
while (!net_connected_) {
|
while (!net_connected_) {
|
||||||
co->CoYield();
|
co->CoYield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
).lock());
|
|
||||||
f8::UdpLog::Instance()->Info
|
f8::UdpLog::Instance()->Info
|
||||||
("WebSocketClient on_connect ok", {});
|
("WebSocketClient on_connect ok", {});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user