diff options
author | jackpoz <giacomopoz@gmail.com> | 2013-12-22 14:00:14 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2013-12-22 14:00:14 +0100 |
commit | b0ffbb2179b4060a6b2dbd52d2fc777bdd403398 (patch) | |
tree | 7943ff2016cee25e792ea14fb8c4b92fcfc184eb /src/server/authserver/Server/AuthSocket.cpp | |
parent | 9ac96fd702d8ed23491d13eda2238312120cf52f (diff) |
Core/Auth: Fix expiring account bans
Fix a database race condition in authserver that would delay the account ban expiry by 1 login because the query that would have removed the ban was executed asynchronously.
Diffstat (limited to 'src/server/authserver/Server/AuthSocket.cpp')
-rw-r--r-- | src/server/authserver/Server/AuthSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/authserver/Server/AuthSocket.cpp b/src/server/authserver/Server/AuthSocket.cpp index 6595b6238b2..41bc9089987 100644 --- a/src/server/authserver/Server/AuthSocket.cpp +++ b/src/server/authserver/Server/AuthSocket.cpp @@ -443,7 +443,7 @@ bool AuthSocket::_HandleLogonChallenge() if (!locked) { //set expired bans to inactive - LoginDatabase.Execute(LoginDatabase.GetPreparedStatement(LOGIN_UPD_EXPIRED_ACCOUNT_BANS)); + LoginDatabase.DirectExecute(LoginDatabase.GetPreparedStatement(LOGIN_UPD_EXPIRED_ACCOUNT_BANS)); // If the account is banned, reject the logon attempt stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_ACCOUNT_BANNED); |