Fixed server crash when disconnecting during login.

This commit is contained in:
lotodore
2010-09-04 16:43:30 +00:00
parent 17f10632e3
commit 7d145bf0e1
+3
View File
@@ -1558,10 +1558,13 @@ void
ServerLobbyThread::UserValid(unsigned playerId, const DBPlayerData &dbPlayerData)
{
SessionWrapper tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerId, true);
if (tmpSession.sessionData && tmpSession.playerData)
{
tmpSession.playerData->SetDBId(dbPlayerData.id);
tmpSession.playerData->SetCountry(dbPlayerData.country);
this->AuthChallenge(tmpSession, dbPlayerData.secret);
}
}
void
ServerLobbyThread::UserInvalid(unsigned playerId)