From 213ab157a6e696ea76feb581977ebef2e2fad217 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 24 Nov 2018 19:16:22 +0100 Subject: remove duplicate --- src/DirectConnection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3