mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
chore(net): use ClientConnection::Initiate consistently
This commit is contained in:
parent
a5e7ca9a22
commit
700db49edc
@ -121,11 +121,7 @@ void ClientConnection::AccountLogin_Finish(int32_t errorCode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ClientConnection::AccountLogin_Queued() {
|
void ClientConnection::AccountLogin_Queued() {
|
||||||
this->m_statusCop = COP_WAIT_QUEUE;
|
this->Initiate(COP_WAIT_QUEUE, 27, nullptr);
|
||||||
this->m_errorCode = 27;
|
|
||||||
this->m_statusComplete = 0;
|
|
||||||
|
|
||||||
// TODO LogConnectionStatus(this->m_statusCop, 27, 1);
|
|
||||||
|
|
||||||
// TODO CGlueMgr::UpdateWaitQueue(this->m_queuePosition);
|
// TODO CGlueMgr::UpdateWaitQueue(this->m_queuePosition);
|
||||||
}
|
}
|
||||||
@ -154,12 +150,7 @@ void ClientConnection::Complete(int32_t result, int32_t errorCode) {
|
|||||||
void ClientConnection::Connect() {
|
void ClientConnection::Connect() {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
this->m_cleanup = nullptr;
|
this->Initiate(COP_CONNECT, 7, nullptr);
|
||||||
this->m_statusCop = COP_CONNECT;
|
|
||||||
this->m_errorCode = 7;
|
|
||||||
this->m_statusComplete = 0;
|
|
||||||
|
|
||||||
// TODO LogConnectionStatus(this->m_statusCop, this->m_errorCode, 1)
|
|
||||||
|
|
||||||
if (this->m_connected) {
|
if (this->m_connected) {
|
||||||
this->Complete(1, 5);
|
this->Complete(1, 5);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user