LibGemini: Avoid implicitly copying ByteBuffer

This commit is contained in:
Ben Wiederhake 2021-11-28 22:40:22 +01:00 committed by Brian Gianforcaro
parent 18ae5ede88
commit d78365f785

View file

@ -122,8 +122,8 @@ void Job::on_socket_connected()
}
}
m_received_buffers.append(payload);
m_received_size += payload.size();
m_received_buffers.append(move(payload));
flush_received_buffers();
deferred_invoke([this] { did_progress({}, m_received_size); });