aboutsummaryrefslogtreecommitdiff
path: root/src/DirectConnection.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-06-09 21:32:20 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commit7b61bed0e0624fb33409c29dda5462029b42393b (patch)
tree47cb7738ade20b1e3a05d9e0a4aaa854f4b4eaea /src/DirectConnection.cpp
parent58498260c6128151c805265232ad3467770493b7 (diff)
Fix crash in send method, add debug
Diffstat (limited to 'src/DirectConnection.cpp')
-rw-r--r--src/DirectConnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DirectConnection.cpp b/src/DirectConnection.cpp
index 03fc27c..3108410 100644
--- a/src/DirectConnection.cpp
+++ b/src/DirectConnection.cpp
@@ -121,7 +121,7 @@ namespace sibs
}).detach();
}
- void DirectConnections::send(const std::shared_ptr<DirectConnectionPeer> &peer, std::shared_ptr<std::vector<u8>> data, PubSubSendDataCallback sendDataCallbackFunc)
+ void DirectConnections::send(const std::shared_ptr<DirectConnectionPeer> peer, std::shared_ptr<std::vector<u8>> data, PubSubSendDataCallback sendDataCallbackFunc)
{
// TODO: Replace this with light-weight threads (fibers)?
std::thread([peer, data, sendDataCallbackFunc]()