fb0723b653f36c73f7e7ab55df708275aacb3401
HandleAltCreate submitted the login via SessionMgr().LoginBot immediately after BotCharacterFactory::Create. SaveToDB is async, so the character row is not committed yet: BeginLogin's holder loads nothing, the BotSession never completes and never leaves sessions_ — the bot appears 'stuck in login' and every later .playerbot login fails with 'login already in flight'. The .playerbot squad path already avoided this; alt create now matches it by deferring to DrainAltFinalizes, which submits the login on the next world tick against the committed row + CharacterCache entry. Also hardened DrainAltFinalizes: an in-flight session older than 25s is a wedged zombie — reap it (LogoutBot) and resubmit once so a leftover zombie from a pre-fix build (or any future race) self-heals instead of wedging that bot forever.
Description
No description provided
1.1 GiB
Languages
C++
96.7%
Lua
2.1%
Python
1.1%
CMake
0.1%