diff options
Diffstat (limited to 'src/DirectConnection.cpp')
-rw-r--r-- | src/DirectConnection.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/DirectConnection.cpp b/src/DirectConnection.cpp index cb71c8f..9d5e30f 100644 --- a/src/DirectConnection.cpp +++ b/src/DirectConnection.cpp @@ -176,9 +176,6 @@ namespace sibs Log::debug("DirectConnections: Connecting to peer (ip: %s, port: %d, rendezvous: %s)", address.getAddress().c_str(), address.getPort(), rendezvous ? "yes" : "no"); if(UDT::connect(socketId, (sockaddr*)&address.address, sizeof(address.address)) == UDT::ERROR) { - if(!server) - peers.erase(peers.find(socketId)); - if(connectCallbackFunc) connectCallbackFunc(peer, PubSubResult::RESULT_ERROR, UDT::getlasterror_desc()); |