From 325904470cf4d29a45fc5990d61d91b3215fdc0a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 29 Sep 2012 21:03:38 +0000 Subject: 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 --- source/ClientHandle.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index af0f686d1..8d2ea359d 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -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(); } -- cgit v1.2.3