From fc7b5201a46079359b7d5ed46677b8b8b267d167 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 12 Jul 2017 19:22:53 +0200 Subject: [PATCH] Core/Auth: Prevent queueing more than one realmlist query at the same time --- src/server/authserver/Server/AuthSession.cpp | 1 + src/server/authserver/Server/AuthSession.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp index 3fb34ac478f..a191d4aaf50 100644 --- a/src/server/authserver/Server/AuthSession.cpp +++ b/src/server/authserver/Server/AuthSession.cpp @@ -786,6 +786,7 @@ bool AuthSession::HandleRealmList() stmt->setUInt32(0, _accountInfo.Id); _queryProcessor.AddQuery(LoginDatabase.AsyncQuery(stmt).WithPreparedCallback(std::bind(&AuthSession::RealmListCallback, this, std::placeholders::_1))); + _status = STATUS_WAITING_FOR_REALM_LIST; return true; } diff --git a/src/server/authserver/Server/AuthSession.h b/src/server/authserver/Server/AuthSession.h index 20759c82952..12b0ca6a8f8 100644 --- a/src/server/authserver/Server/AuthSession.h +++ b/src/server/authserver/Server/AuthSession.h @@ -39,6 +39,7 @@ enum AuthStatus STATUS_LOGON_PROOF, STATUS_RECONNECT_PROOF, STATUS_AUTHED, + STATUS_WAITING_FOR_REALM_LIST, STATUS_CLOSED };