From e1f14301c5aff878495c8716f867fc7af0c12e06 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 5 Jun 2011 17:12:06 +0000 Subject: [PATCH] fix --- src/core/gnunet-service-core.c | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 37960f76a..e1a902217 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -3123,25 +3123,12 @@ send_key (struct Neighbour *n) } if (GNUNET_YES != n->is_connected) { -#if DEBUG_CORE - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Not yet connected to peer `%4s'!\n", - GNUNET_i2s (&n->peer)); -#endif - if (NULL == n->th) - { - GNUNET_STATISTICS_update (stats, - gettext_noop ("# Asking transport to connect (for SET_KEY)"), - 1, - GNUNET_NO); - n->th = GNUNET_TRANSPORT_notify_transmit_ready (transport, - &n->peer, - sizeof (struct SetKeyMessage) + sizeof (struct PingMessage), - 0, - GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, - ¬ify_encrypted_transmit_ready, - n); - } + GNUNET_STATISTICS_update (stats, + gettext_noop ("# Asking transport to connect (for SET_KEY)"), + 1, + GNUNET_NO); + GNUNET_TRANSPORT_try_connect (transport, + &n->peer); return; } #if DEBUG_CORE -- 2.25.1