1
0
Fork 0

Delayed sending the KeepAlive packet for 3 seconds after login.

This should alleviate #889.
This commit is contained in:
madmaxoft 2014-04-29 23:10:50 +02:00
parent 015bf244b5
commit 1dbdb8ed91
1 changed files with 5 additions and 0 deletions

View File

@ -336,6 +336,11 @@ void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID)
// Send scoreboard data
World->GetScoreBoard().SendTo(*this);
// Delay the first ping until the client "settles down"
// This should fix #889, "BadCast exception, cannot convert bit to fm" error in client
cTimer t1;
m_LastPingTime = t1.GetNowTime() + 3000; // Send the first KeepAlive packet in 3 seconds
cRoot::Get()->GetPluginManager()->CallHookPlayerSpawned(*m_Player);
}