From: Christian Grothoff Date: Sun, 18 Oct 2015 18:57:31 +0000 (+0000) Subject: -do not suggest twice X-Git-Tag: initial-import-from-subversion-38251~1237 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8f001cabeafeedd0ff95e3398ee684a5001d29d2;p=oweals%2Fgnunet.git -do not suggest twice --- 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 (); }