summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-22 08:17:26 +0200
committermadmaxoft <github@xoft.cz>2013-08-22 08:17:26 +0200
commit16e3242456249508c16a025fa4fc95d1a73a4e7f (patch)
tree74bb39818a261d844903aaa39bd59201852f3212
parentUpdated Core and ProtectionAreas to their latest versions. (diff)
downloadcuberite-16e3242456249508c16a025fa4fc95d1a73a4e7f.tar
cuberite-16e3242456249508c16a025fa4fc95d1a73a4e7f.tar.gz
cuberite-16e3242456249508c16a025fa4fc95d1a73a4e7f.tar.bz2
cuberite-16e3242456249508c16a025fa4fc95d1a73a4e7f.tar.lz
cuberite-16e3242456249508c16a025fa4fc95d1a73a4e7f.tar.xz
cuberite-16e3242456249508c16a025fa4fc95d1a73a4e7f.tar.zst
cuberite-16e3242456249508c16a025fa4fc95d1a73a4e7f.zip
Diffstat (limited to '')
-rw-r--r--source/ClientHandle.cpp6
1 files changed, 6 insertions, 0 deletions
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);