diff options
author | Aleksi Lindeman <dec05eba@protonmail.com> | 2018-11-24 19:16:22 +0100 |
---|---|---|
committer | Aleksi Lindeman <dec05eba@protonmail.com> | 2018-11-24 19:16:22 +0100 |
commit | 84fc5532fd447cfb43ed26dca0240eee669b8338 (patch) | |
tree | bf5b97195a4df8ad4d27643bb7f82253cc7eeb4c | |
parent | 0f6b5e3e77360929e79a5efc1edc1dd9ffe727b3 (diff) |
remove duplicate
-rw-r--r-- | src/DirectConnection.cpp | 4 |
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; |