diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-24 19:16:22 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 22:56:48 +0200 |
commit | 213ab157a6e696ea76feb581977ebef2e2fad217 (patch) | |
tree | 9bf21e43d97e43323ee63f8b8ecaf54d5064af0c /src | |
parent | f1f3525e60d346458e729c59fead584aac3ded50 (diff) |
remove duplicate
Diffstat (limited to 'src')
-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; |