aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-24 19:16:22 +0100
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commit213ab157a6e696ea76feb581977ebef2e2fad217 (patch)
tree9bf21e43d97e43323ee63f8b8ecaf54d5064af0c /src
parentf1f3525e60d346458e729c59fead584aac3ded50 (diff)
remove duplicate
Diffstat (limited to 'src')
-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;