From: Christian Grothoff Date: Mon, 30 May 2011 15:32:44 +0000 (+0000) Subject: indenting X-Git-Tag: initial-import-from-subversion-38251~18382 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8dc367b10a197123c7148505aa1757055c2e3502;p=oweals%2Fgnunet.git indenting --- 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,