aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksi Lindeman <dec05eba@protonmail.com>2018-11-24 19:16:22 +0100
committerAleksi Lindeman <dec05eba@protonmail.com>2018-11-24 19:16:22 +0100
commit84fc5532fd447cfb43ed26dca0240eee669b8338 (patch)
treebf5b97195a4df8ad4d27643bb7f82253cc7eeb4c
parent0f6b5e3e77360929e79a5efc1edc1dd9ffe727b3 (diff)
remove duplicate
-rw-r--r--src/DirectConnection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DirectConnection.cpp b/src/DirectConnection.cpp
index 9d5e30f..175dae3 100644
--- a/src/DirectConnection.cpp
+++ b/src/DirectConnection.cpp
@@ -160,10 +160,10 @@ namespace sibs
int socketId = socket->udtSocket;
if(!server)
{
- UDT::epoll_add_usock(eid, socket->udtSocket);
+ UDT::epoll_add_usock(eid, socketId);
socket->eid = eid;
peersMutex.lock();
- peers[socket->udtSocket] = peer;
+ peers[socketId] = peer;
peer->socket = std::move(socket);
peer->address = address;
peer->receiveDataCallbackFunc = receiveDataCallbackFunc;