-do not suggest twice
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 18:57:31 +0000 (18:57 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 18:57:31 +0000 (18:57 +0000)
src/cadet/gnunet-service-cadet_peer.c

index 80a6bb98f8287ce913a83c9cf721074eb18013f7..9ff78e898faae89a313647a3706af6cfad5e4977 100644 (file)
@@ -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 ();
 }