aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Blot <loic.blot@unix-experience.fr>2017-09-04 17:28:29 +0200
committerLoïc Blot <loic.blot@unix-experience.fr>2017-09-04 17:28:29 +0200
commit31e0f0efe93a987b7d472dbece18a3d95b00fa96 (patch)
tree1fcf0029037b5f5832ff8ddc1e6579827820d967
parent5b04f5e7d231437b534f4cad39da78624d97c584 (diff)
downloadminetest-31e0f0efe93a987b7d472dbece18a3d95b00fa96.tar.gz
minetest-31e0f0efe93a987b7d472dbece18a3d95b00fa96.tar.bz2
minetest-31e0f0efe93a987b7d472dbece18a3d95b00fa96.zip
Revert "Network: fix a concurrency problem, by re-adding a copy in ConnectionCommand"
This reverts commit 5b04f5e7d231437b534f4cad39da78624d97c584.
-rw-r--r--src/network/connection.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/network/connection.h b/src/network/connection.h
index 94d5aa1e9..e1bb613f0 100644
--- a/src/network/connection.h
+++ b/src/network/connection.h
@@ -330,18 +330,6 @@ struct ConnectionCommand
bool raw = false;
ConnectionCommand() = default;
- ConnectionCommand &operator=(const ConnectionCommand &other)
- {
- type = other.type;
- address = other.address;
- peer_id = other.peer_id;
- channelnum = other.channelnum;
- // We must copy the buffer here to prevent race condition
- data = SharedBuffer<u8>(*other.data, other.data.getSize());
- reliable = other.reliable;
- raw = other.reliable;
- return *this;
- }
void serve(Address address_)
{