aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksi Lindeman <dec05eba@protonmail.com>2018-11-23 23:38:28 +0100
committerAleksi Lindeman <dec05eba@protonmail.com>2018-11-23 23:38:28 +0100
commit0f6b5e3e77360929e79a5efc1edc1dd9ffe727b3 (patch)
tree2880eb37cc666f31188481e1848b55e67bf24cd9
parent81b59a08b69d4872b06930aedd06a957c4acb7cc (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());