summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-07-10 22:04:49 +0200
committerGitHub <noreply@github.com>2021-07-10 22:04:49 +0200
commite9265b1d0129e56b9b665019697055bd63229fde (patch)
tree611a2026e0e9ca9bb1de62170d79b9906d112e6f /src/ClientHandle.cpp
parentItem frame maps (#5258) (diff)
downloadcuberite-e9265b1d0129e56b9b665019697055bd63229fde.tar
cuberite-e9265b1d0129e56b9b665019697055bd63229fde.tar.gz
cuberite-e9265b1d0129e56b9b665019697055bd63229fde.tar.bz2
cuberite-e9265b1d0129e56b9b665019697055bd63229fde.tar.lz
cuberite-e9265b1d0129e56b9b665019697055bd63229fde.tar.xz
cuberite-e9265b1d0129e56b9b665019697055bd63229fde.tar.zst
cuberite-e9265b1d0129e56b9b665019697055bd63229fde.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 47bbe691a..9dc112011 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -241,7 +241,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);
+ m_Protocol.HandleOutgoingData(OutgoingData);
Link->Send(OutgoingData.data(), OutgoingData.size());
}
}
@@ -3308,7 +3308,7 @@ void cClientHandle::ProcessProtocolIn(void)
try
{
- m_Protocol.HandleIncomingData(*this, std::move(IncomingData));
+ m_Protocol.HandleIncomingData(*this, IncomingData);
}
catch (const std::exception & Oops)
{