summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-08-26 22:55:09 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-08-26 22:55:09 +0200
commit11ca2cf4c01426176e0b9f5111aa594afd10983a (patch)
treedaacb765df19a450625602edf7e1a7122f1437dc /src/ClientHandle.cpp
parentUse more URL-Encoding when sending API requests. (diff)
downloadcuberite-11ca2cf4c01426176e0b9f5111aa594afd10983a.tar
cuberite-11ca2cf4c01426176e0b9f5111aa594afd10983a.tar.gz
cuberite-11ca2cf4c01426176e0b9f5111aa594afd10983a.tar.bz2
cuberite-11ca2cf4c01426176e0b9f5111aa594afd10983a.tar.lz
cuberite-11ca2cf4c01426176e0b9f5111aa594afd10983a.tar.xz
cuberite-11ca2cf4c01426176e0b9f5111aa594afd10983a.tar.zst
cuberite-11ca2cf4c01426176e0b9f5111aa594afd10983a.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index d36f27d8c..b6c423652 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -133,6 +133,7 @@ void cClientHandle::Destroy(void)
{
cCSLock Lock(m_CSOutgoingData);
+ m_Protocol.HandleOutgoingData(m_OutgoingData); // Finalise any encryption.
m_Link->Send(m_OutgoingData.data(), m_OutgoingData.size()); // Flush remaining data.
m_Link->Shutdown(); // Cleanly close the connection.
m_Link.reset(); // Release the strong reference cTCPLink holds to ourself.