From 7268a70902b04e098b6b530986d9ce6d210fdd07 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 26 Feb 2012 12:55:42 +0000 Subject: Attempt at fixing crashes with disconnecting players git-svn-id: http://mc-server.googlecode.com/svn/trunk@329 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cServer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/cServer.h') diff --git a/source/cServer.h b/source/cServer.h index 200f2bb1f..5e21dbf37 100644 --- a/source/cServer.h +++ b/source/cServer.h @@ -58,7 +58,7 @@ public: //tolua_export const AString & GetServerID(void) const; - void ClientDestroying(const cClientHandle * a_Client); // Called by cClientHandle::Destroy(); removes the client from m_SocketThreads + void ClientDestroying(const cClientHandle * a_Client); // Called by cClientHandle::Destroy(); stop m_SocketThreads from calling back into a_Client void NotifyClientWrite(const cClientHandle * a_Client); // Notifies m_SocketThreads that client has something to be written @@ -66,6 +66,8 @@ public: //tolua_export void QueueClientClose(const cSocket * a_Socket); // Queues the socket to close when all its outgoing data is sent + void RemoveClient(const cSocket * a_Socket); // Removes the socket from m_SocketThreads + private: friend class cRoot; // so cRoot can create and destroy cServer -- cgit v1.2.3