aboutsummaryrefslogtreecommitdiff
path: root/src/network/connectionthreads.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-09-03 19:01:53 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-09-03 19:01:53 +0200
commiteabf04bd34b840ee3359609fc977cf4795b33a3a (patch)
treee44966316c6e121a2987a28a7c7decc5365b890c /src/network/connectionthreads.cpp
parent2ac5a45faa26a9192ab3c3940d939b18b0df8b38 (diff)
downloadminetest-eabf04bd34b840ee3359609fc977cf4795b33a3a.tar.gz
minetest-eabf04bd34b840ee3359609fc977cf4795b33a3a.tar.bz2
minetest-eabf04bd34b840ee3359609fc977cf4795b33a3a.zip
Network part requires SharedBuffers to be pass as value
This can trigger unreproductible crashes due to concurrency problem on SharedBuffers This fixes #6354
Diffstat (limited to 'src/network/connectionthreads.cpp')
-rw-r--r--src/network/connectionthreads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/connectionthreads.cpp b/src/network/connectionthreads.cpp
index 63c1855c5..ec09e9d3e 100644
--- a/src/network/connectionthreads.cpp
+++ b/src/network/connectionthreads.cpp
@@ -330,7 +330,7 @@ void ConnectionSendThread::sendAsPacketReliable(BufferedPacket &p, Channel *chan
}
bool ConnectionSendThread::rawSendAsPacket(u16 peer_id, u8 channelnum,
- const SharedBuffer<u8> &data, bool reliable)
+ SharedBuffer<u8> data, bool reliable)
{
PeerHelper peer = m_connection->getPeerNoEx(peer_id);
if (!peer) {