From ecbe272039f534578d7a05caf5ec288ffdba3235 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 4 Nov 2025 22:56:15 -0600 Subject: [PATCH] feat(net): partially implement NetClient::WCCantConnect --- src/net/connection/NetClient.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/net/connection/NetClient.cpp b/src/net/connection/NetClient.cpp index 921a00f..81e24cf 100644 --- a/src/net/connection/NetClient.cpp +++ b/src/net/connection/NetClient.cpp @@ -382,7 +382,15 @@ void NetClient::SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, voi } void NetClient::WCCantConnect(WowConnection* conn, uint32_t timeStamp, NETCONNADDR* addr) { - // TODO + if (conn == this->m_redirectConnection) { + // TODO + + return; + } + + if (conn == this->m_serverConnection) { + this->m_netEventQueue->AddEvent(EVENT_ID_NET_CANTCONNECT, conn, this, nullptr, 0); + } } void NetClient::WCConnected(WowConnection* conn, WowConnection* inbound, uint32_t timeStamp, const NETCONNADDR* addr) {