From 11ca2cf4c01426176e0b9f5111aa594afd10983a Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Thu, 26 Aug 2021 21:55:09 +0100 Subject: Disconnect: call HandleOutgoingData one last time * Fixes #5285 --- src/ClientHandle.cpp | 1 + 1 file changed, 1 insertion(+) 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. -- cgit v1.2.3