From e735faf7558aff457432a14bdfde893b33d4d311 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 28 Jun 2021 22:12:01 +0100 Subject: Protocol: call the encryptor once before sending data --- src/ClientHandle.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ClientHandle.cpp') diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 2e50c669b..8dbf4faa5 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -238,6 +238,7 @@ void cClientHandle::ProcessProtocolOut() // to prevent it being reset between the null check and the Send: if (auto Link = m_Link; Link != nullptr) { + m_Protocol->DataPrepared(OutgoingData); Link->Send(OutgoingData.data(), OutgoingData.size()); } } -- cgit v1.2.3