diff --git a/libshvchainpack/src/chainpack/socketrpcdriver.cpp b/libshvchainpack/src/chainpack/socketrpcdriver.cpp index 212169004..94bcc5ea4 100644 --- a/libshvchainpack/src/chainpack/socketrpcdriver.cpp +++ b/libshvchainpack/src/chainpack/socketrpcdriver.cpp @@ -201,7 +201,7 @@ void SocketRpcDriver::exec() if (m_readFrameSize > 0 && m_readFrameSize <= m_readBuffer.size()) { auto frame = std::string(m_readBuffer, 0, m_readFrameSize); m_readBuffer = std::string(m_readBuffer, m_readFrameSize); - onFrameDataRead(std::move(frame)); + onFrameDataRead(frame); } if (m_readFrameSize == 0 || m_readFrameSize > m_readBuffer.size()) { break;