summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r--source/cClientHandle.cpp9
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)