Skip to content

Commit 57a59ae

Browse files
authored
Network: Delete copy constructor and use std::move instead (#11642)
This is a follow-up change which disables class copies where possible to avoid unnecessary memory movements.
1 parent 1dc1305 commit 57a59ae

File tree

7 files changed

+600
-552
lines changed

7 files changed

+600
-552
lines changed

src/client/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ void Client::ProcessData(NetworkPacket *pkt)
877877
*/
878878
if(sender_peer_id != PEER_ID_SERVER) {
879879
infostream << "Client::ProcessData(): Discarding data not "
880-
"coming from server: peer_id=" << sender_peer_id
880+
"coming from server: peer_id=" << sender_peer_id << " command=" << pkt->getCommand()
881881
<< std::endl;
882882
return;
883883
}

0 commit comments

Comments
 (0)