Core/DBLayer: Add nicer api for SQLQueryHolders

This commit is contained in:
Shauren authored and Ovahlord committed 2020-08-01 15:37:20 +02:00
1 parent 040140b4ea
commit 6d4b396f7b
8 files changed
+52 -17

No files matched your search

@@ -797,7 +797,10 @@ void WorldSession::HandleContinuePlayerLogin()
SendPacket(WorldPackets::Auth::ResumeComms(CONNECTION_TYPE_INSTANCE).Write());
_charLoginCallback = CharacterDatabase.DelayQueryHolder(holder);
AddQueryHolderCallback(CharacterDatabase.DelayQueryHolder(holder)).AfterComplete([this](SQLQueryHolderBase* holder)
{
HandlePlayerLogin(static_cast<LoginQueryHolder*>(holder));
});
}
void WorldSession::AbortLogin(WorldPackets::Character::LoginFailureReason reason)