From 8f001cabeafeedd0ff95e3398ee684a5001d29d2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 18 Oct 2015 18:57:31 +0000 Subject: [PATCH] -do not suggest twice --- src/cadet/gnunet-service-cadet_peer.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index 80a6bb98f..9ff78e898 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c @@ -2583,10 +2583,11 @@ GCP_try_connect (struct CadetPeer *peer) mh, &hello_offer_done, peer); - peer->connectivity_suggestion - = GNUNET_ATS_connectivity_suggest (ats_ch, - GNUNET_PEER_resolve2 (peer->id), - 1 /* strength */); + if (NULL == peer->connectivity_suggestion) + peer->connectivity_suggestion + = GNUNET_ATS_connectivity_suggest (ats_ch, + GNUNET_PEER_resolve2 (peer->id), + 1 /* strength */); GCC_check_connections (); } -- 2.25.1