Skip to content

Commit

Permalink
Fix queued session state
Browse files Browse the repository at this point in the history
  • Loading branch information
celguar committed Nov 4, 2024
1 parent cd422e4 commit c5f98ec
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/game/Server/WorldSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,23 @@ bool WorldSession::Update(uint32 diff)
m_socket = m_requestSocket;
m_requestSocket = nullptr;
sLog.outDetail("New Session key %s", m_socket->GetSessionKey().AsHexStr());
SendAuthOk();
if (m_inQueue)
{
if (!sWorld.GetQueuedSessionPos(this))
{
SetInQueue(false);
SendAuthOk();
}
else
{
// reset state
m_sessionState = WORLD_SESSION_STATE_CREATED;
SendAuthQueued();
return true;
}
}
else
SendAuthOk();
}
else
{
Expand Down

0 comments on commit c5f98ec

Please sign in to comment.