From 8dc367b10a197123c7148505aa1757055c2e3502 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 May 2011 15:32:44 +0000 Subject: [PATCH] indenting --- src/core/gnunet-service-core.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 0b7886796..1331fce25 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -3025,13 +3025,19 @@ handle_client_request_connect (void *cls, (n->th != NULL) ) { if (GNUNET_YES == n->is_connected) - GNUNET_STATISTICS_update (stats, - gettext_noop ("# connection requests ignored (already connected)"), - 1, - GNUNET_NO); + { + GNUNET_STATISTICS_update (stats, + gettext_noop ("# connection requests ignored (already connected)"), + 1, + GNUNET_NO); + } else { - GNUNET_TRANSPORT_notify_transmit_ready_cancel(n->th); + if (NULL != n->th) + { + GNUNET_TRANSPORT_notify_transmit_ready_cancel (n->th); + n->th = NULL; + } n->th = GNUNET_TRANSPORT_notify_transmit_ready (transport, &cm->peer, sizeof (struct GNUNET_MessageHeader), 0, -- 2.25.1