aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-23 23:38:28 +0100
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commitf1f3525e60d346458e729c59fead584aac3ded50 (patch)
tree896fc2643a698b5cf0b35fd558a2606272a1d503
parent1167a78fd14b8a4a421378c8815a4992e06d11cd (diff)
Do not remote failed to connect peer on fail to connect
-rw-r--r--src/DirectConnection.cpp3
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());