diff options
author | cedeel@gmail.com <cedeel@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-16 10:53:38 +0200 |
---|---|---|
committer | cedeel@gmail.com <cedeel@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-16 10:53:38 +0200 |
commit | 4d6433ac3060ca255a4a76a65d656a724a16ba1a (patch) | |
tree | 3027886f6a2168ccaf001f7500ba00ba445747c9 | |
parent | Exported cWorld::ForEachEntity and cWorld::ForEachEntityInChunk; no idea if they actually work (diff) | |
download | cuberite-4d6433ac3060ca255a4a76a65d656a724a16ba1a.tar cuberite-4d6433ac3060ca255a4a76a65d656a724a16ba1a.tar.gz cuberite-4d6433ac3060ca255a4a76a65d656a724a16ba1a.tar.bz2 cuberite-4d6433ac3060ca255a4a76a65d656a724a16ba1a.tar.lz cuberite-4d6433ac3060ca255a4a76a65d656a724a16ba1a.tar.xz cuberite-4d6433ac3060ca255a4a76a65d656a724a16ba1a.tar.zst cuberite-4d6433ac3060ca255a4a76a65d656a724a16ba1a.zip |
-rw-r--r-- | source/cClientHandle.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 0eb621920..bd02e31c3 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -203,9 +203,12 @@ cClientHandle::~cClientHandle() if (m_Socket.IsValid()) { - cPacket_Disconnect Disconnect; - Disconnect.m_Reason = "Server shut down? Kthnxbai"; - m_Socket.Send(&Disconnect); + if(!m_bKicking) + { + cPacket_Disconnect Disconnect; + Disconnect.m_Reason = "Server shut down? Kthnxbai"; + m_Socket.Send(&Disconnect); + } } if (m_Player != NULL) |