From 700db49edc43a3e1df568ff53c735ba77f58475d Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sat, 4 Oct 2025 20:54:34 -0500 Subject: [PATCH] chore(net): use ClientConnection::Initiate consistently --- src/net/connection/ClientConnection.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/net/connection/ClientConnection.cpp b/src/net/connection/ClientConnection.cpp index 4fdbf91..431e505 100644 --- a/src/net/connection/ClientConnection.cpp +++ b/src/net/connection/ClientConnection.cpp @@ -121,11 +121,7 @@ void ClientConnection::AccountLogin_Finish(int32_t errorCode) { } void ClientConnection::AccountLogin_Queued() { - this->m_statusCop = COP_WAIT_QUEUE; - this->m_errorCode = 27; - this->m_statusComplete = 0; - - // TODO LogConnectionStatus(this->m_statusCop, 27, 1); + this->Initiate(COP_WAIT_QUEUE, 27, nullptr); // TODO CGlueMgr::UpdateWaitQueue(this->m_queuePosition); } @@ -154,12 +150,7 @@ void ClientConnection::Complete(int32_t result, int32_t errorCode) { void ClientConnection::Connect() { // TODO - this->m_cleanup = nullptr; - this->m_statusCop = COP_CONNECT; - this->m_errorCode = 7; - this->m_statusComplete = 0; - - // TODO LogConnectionStatus(this->m_statusCop, this->m_errorCode, 1) + this->Initiate(COP_CONNECT, 7, nullptr); if (this->m_connected) { this->Complete(1, 5);