aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;