aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2017-07-12 19:22:53 +0200
committerShauren <shauren.trinity@gmail.com>2017-07-12 19:22:53 +0200
commitfba87d3f337b538fe9f69ab9ec50f47dcfabeabe (patch)
treee112a3c43945f46957743f2f68cc54ec630ac369 /src
parent432dd7c25d1bfb83fe267e6aa5239eb4a5c23c1f (diff)
Core/Auth: Prevent queueing more than one realmlist query at the same time
Diffstat (limited to 'src')
-rw-r--r--src/server/authserver/Server/AuthSession.cpp1
-rw-r--r--src/server/authserver/Server/AuthSession.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp
index 8e6ec882636..49602119de0 100644
--- a/src/server/authserver/Server/AuthSession.cpp
+++ b/src/server/authserver/Server/AuthSession.cpp
@@ -785,6 +785,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 975e7387373..43468ef5e51 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
};