From f1f3525e60d346458e729c59fead584aac3ded50 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 23 Nov 2018 23:38:28 +0100 Subject: Do not remote failed to connect peer on fail to connect --- src/DirectConnection.cpp | 3 --- 1 file changed, 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()); -- cgit v1.2.3