tell transport to connect, not core
authorChristian Grothoff <christian@grothoff.org>
Wed, 5 Oct 2011 13:22:50 +0000 (13:22 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 5 Oct 2011 13:22:50 +0000 (13:22 +0000)
src/dht/gnunet-service-dht_neighbours.c

index e1491a263d96742cabd9335ba7398969ec78c22e..418474c74aa60270f3bb48648e903ea44bad5ec5 100644 (file)
@@ -1983,11 +1983,12 @@ handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer,
           (k_buckets[bucket].peers_size < bucket_size) )
        {    
          if (NULL != GDS_transport_handle)
+         {
            GNUNET_TRANSPORT_offer_hello (GDS_transport_handle,
                                          h, NULL, NULL);
-         (void) GNUNET_CORE_peer_request_connect (coreAPI,
-                                                  &pid, 
-                                                  NULL, NULL);
+           GNUNET_TRANSPORT_try_connect (GDS_transport_handle,
+                                         &pid);
+         }
        }   
     }
   }