Fixing another guest login issue. Setting login timeout to 60 seconds to allow the user to enter the password.

This commit is contained in:
lotodore
2009-11-15 09:07:43 +00:00
parent a7888f324d
commit f5d0b19320
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -1095,6 +1095,9 @@ ClientStateWaitEnterLogin::TimerLoop(const boost::system::error_code& ec, boost:
OCTET_STRING_fromBuf(&guestLogin->nickName,
context.GetPlayerName().c_str(),
context.GetPlayerName().length());
client->GetSender().Send(context.GetSessionData(), init);
client->SetState(ClientStateWaitSession::Instance());
}
// If the player is not a guest, authenticate.
else
@@ -1125,10 +1128,9 @@ ClientStateWaitEnterLogin::TimerLoop(const boost::system::error_code& ec, boost:
MD5_DATA_SIZE);
}
}
client->GetSender().Send(context.GetSessionData(), init);
client->SetState(ClientStateWaitAuthChallenge::Instance());
}
client->GetSender().Send(context.GetSessionData(), init);
client->SetState(ClientStateWaitAuthChallenge::Instance());
}
else
{