Core/Auth: Prevent queueing more than one realmlist query at the same time

This commit is contained in:
Shauren authored and Aokromes committed 2017-07-12 19:25:33 +02:00
1 parent b21bf04d8e
commit fc7b5201a4
2 files changed
+2

No files matched your search

@@ -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;
}
@@ -39,6 +39,7 @@ enum AuthStatus
STATUS_LOGON_PROOF,
STATUS_RECONNECT_PROOF,
STATUS_AUTHED,
STATUS_WAITING_FOR_REALM_LIST,
STATUS_CLOSED
};