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:
parent
a0f6149d05
commit
fdac27c63d
@ -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());
|
||||
}
|
||||
|
||||
m_State = 3; // State = Game
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user