1
0

Another attempt at #889.

The packet was being sent after the state was adjusted, so another thread *may* have sent another packet in the meantime.
This commit is contained in:
madmaxoft 2014-04-27 17:31:40 +02:00
parent a0f6149d05
commit fdac27c63d

View File

@ -637,9 +637,11 @@ void cProtocol172::SendLoginSuccess(void)
{
ASSERT(m_State == 2); // State: login?
cPacketizer Pkt(*this, 0x02); // Login success packet
Pkt.WriteString(m_Client->GetUUID());
Pkt.WriteString(m_Client->GetUsername());
{
cPacketizer Pkt(*this, 0x02); // Login success packet
Pkt.WriteString(m_Client->GetUUID());
Pkt.WriteString(m_Client->GetUsername());
}
m_State = 3; // State = Game
}