From 16e3242456249508c16a025fa4fc95d1a73a4e7f Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 22 Aug 2013 08:17:26 +0200 Subject: Another fix for #31. This seems to have done it, no more crashes for me. --- source/ClientHandle.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/ClientHandle.cpp') diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index dda6a6ed2..ed76ee086 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -1287,6 +1287,12 @@ void cClientHandle::HandleTabCompletion(const AString & a_Text) void cClientHandle::SendData(const char * a_Data, int a_Size) { + if (m_HasSentDC) + { + // This could crash the client, because they've already unloaded the world etc., and suddenly a wild packet appears (#31) + return; + } + { cCSLock Lock(m_CSOutgoingData); -- cgit v1.2.3