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

This commit is contained in:
Shauren
2017-07-12 19:22:53 +02:00
parent 432dd7c25d
commit fba87d3f33
2 changed files with 2 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -39,6 +39,7 @@ enum AuthStatus
STATUS_LOGON_PROOF,
STATUS_RECONNECT_PROOF,
STATUS_AUTHED,
STATUS_WAITING_FOR_REALM_LIST,
STATUS_CLOSED
};