aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2024-02-26 07:36:44 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2024-02-26 07:36:44 +0100
commit99d23f939cd1f717a6a52573f9e79a4fdf67a42d (patch)
tree69ca55d957ceb3702892dda1ccaa57d0a32f140f
parentdd0a5ec1cc0f39026993883aa5980eae526f5ce8 (diff)
downloadgnunet-99d23f939cd1f717a6a52573f9e79a4fdf67a42d.tar.gz
gnunet-99d23f939cd1f717a6a52573f9e79a4fdf67a42d.zip
TOPOLOGY: We should always suggest to connect to the peer even with the same strength.
-rw-r--r--src/service/topology/gnunet-daemon-topology.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/service/topology/gnunet-daemon-topology.c b/src/service/topology/gnunet-daemon-topology.c
index c59610014..c706e826d 100644
--- a/src/service/topology/gnunet-daemon-topology.c
+++ b/src/service/topology/gnunet-daemon-topology.c
@@ -270,8 +270,6 @@ attempt_connect (struct Peer *pos)
270 strength = 0; 270 strength = 0;
271 if (NULL != pos->mq) 271 if (NULL != pos->mq)
272 strength *= 2; /* existing connections preferred */ 272 strength *= 2; /* existing connections preferred */
273 if (strength == pos->strength)
274 return; /* nothing to do */
275 if (NULL != pos->ash) 273 if (NULL != pos->ash)
276 { 274 {
277 GNUNET_TRANSPORT_application_suggest_cancel (pos->ash); 275 GNUNET_TRANSPORT_application_suggest_cancel (pos->ash);