diff options
author | madmaxoft <github@xoft.cz> | 2014-01-19 19:31:43 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-19 19:31:43 +0100 |
commit | 3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b (patch) | |
tree | 5eaa7eb6bfd5434d008186decd3d43e302a9c2d8 /src/ClientHandle.cpp | |
parent | Added graph of SocketThreads state transitions. (diff) | |
download | cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.gz cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.bz2 cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.lz cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.xz cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.zst cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index faf583fbb..1eec00bc3 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -120,9 +120,6 @@ cClientHandle::~cClientHandle() LOGD("Deleting client \"%s\" at %p", GetUsername().c_str(), this); - // Remove from cSocketThreads, we're not to be called anymore: - cRoot::Get()->GetServer()->ClientDestroying(this); - { cCSLock Lock(m_CSChunkLists); m_LoadedChunks.clear(); @@ -160,8 +157,7 @@ cClientHandle::~cClientHandle() cRoot::Get()->GetServer()->WriteToClient(this, Data); } - // Queue the socket to close as soon as it sends all outgoing data: - cRoot::Get()->GetServer()->QueueClientClose(this); + // Close the socket as soon as it sends all outgoing data: cRoot::Get()->GetServer()->RemoveClient(this); delete m_Protocol; |