Core/Auth: Fix Auth failing sometimes

Fix a database race condition between authserver saving session key to database asynchronously and worldserver reading it; session key is now saved synchronously.
This commit is contained in:
jackpoz committed 2013-11-16 23:25:21 +01:00
1 parent f2c0ef67a8
commit 096cb6bf00
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -663,7 +663,7 @@ bool AuthSocket::_HandleLogonProof()
stmt->setUInt32(2, GetLocaleByName(_localizationName));
stmt->setString(3, _os);
stmt->setString(4, _login);
LoginDatabase.Execute(stmt);
LoginDatabase.DirectExecute(stmt);
OPENSSL_free((void*)K_hex);