diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-07-10 22:04:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-10 22:04:49 +0200 |
commit | e9265b1d0129e56b9b665019697055bd63229fde (patch) | |
tree | 611a2026e0e9ca9bb1de62170d79b9906d112e6f /src/ClientHandle.cpp | |
parent | Item frame maps (#5258) (diff) | |
download | cuberite-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.cpp | 4 |
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) { |