Removed a rogue cSleep from ClientHandle. Since sockets are owned by sockethreads, the client can safely Destroy() itself right after sending a packet.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@912 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
17486c7853
commit
325904470c
@ -1061,10 +1061,6 @@ void cClientHandle::Tick(float a_Dt)
|
||||
if (cWorld::GetTime() - m_TimeLastPacket > 30.f) // 30 seconds time-out
|
||||
{
|
||||
SendDisconnect("Nooooo!! You timed out! D: Come back!");
|
||||
|
||||
// TODO: Cannot sleep in the tick thread!
|
||||
cSleep::MilliSleep(1000); // Give packet some time to be received
|
||||
|
||||
Destroy();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user