Fixed server crash when disconnecting during login.
This commit is contained in:
@@ -1558,9 +1558,12 @@ void
|
||||
ServerLobbyThread::UserValid(unsigned playerId, const DBPlayerData &dbPlayerData)
|
||||
{
|
||||
SessionWrapper tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerId, true);
|
||||
tmpSession.playerData->SetDBId(dbPlayerData.id);
|
||||
tmpSession.playerData->SetCountry(dbPlayerData.country);
|
||||
this->AuthChallenge(tmpSession, dbPlayerData.secret);
|
||||
if (tmpSession.sessionData && tmpSession.playerData)
|
||||
{
|
||||
tmpSession.playerData->SetDBId(dbPlayerData.id);
|
||||
tmpSession.playerData->SetCountry(dbPlayerData.country);
|
||||
this->AuthChallenge(tmpSession, dbPlayerData.secret);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user