From fcb9b281e061ac9cbb437124a7b980de2613a354 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 27 Mar 2012 19:23:44 +0000 Subject: Fixed a possible crash in ChunkSender - a client would be reported as removed but still would be in the internal queue. git-svn-id: http://mc-server.googlecode.com/svn/trunk@438 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChunkSender.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/ChunkSender.h') diff --git a/source/ChunkSender.h b/source/ChunkSender.h index 59fab5b6c..ae9a8b5c5 100644 --- a/source/ChunkSender.h +++ b/source/ChunkSender.h @@ -99,6 +99,7 @@ protected: sSendChunkList m_SendChunks; cEvent m_evtQueue; // Set when anything is added to m_ChunksReady cEvent m_evtRemoved; // Set when removed clients are safe to be deleted + int m_RemoveCount; // Number of threads waiting for a client removal (m_evtRemoved needs to be set this many times) // Data about the chunk that is being sent: // NOTE that m_BlockData[] is inherited from the cChunkDataCollector -- cgit v1.2.3