chore(net): use ClientConnection::Initiate consistently

This commit is contained in:
fallenoak 2025-10-04 20:54:34 -05:00
parent a5e7ca9a22
commit 700db49edc
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -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);