mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 08:00:48 +01:00
Core/Auth: Prevent queueing more than one realmlist query at the same time
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ enum AuthStatus
|
||||
STATUS_LOGON_PROOF,
|
||||
STATUS_RECONNECT_PROOF,
|
||||
STATUS_AUTHED,
|
||||
STATUS_WAITING_FOR_REALM_LIST,
|
||||
STATUS_CLOSED
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user