From: Christian Grothoff Date: Tue, 21 Dec 2010 14:11:07 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~19472 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dbef81a62985492402945501fbce95b9af7827ad;p=oweals%2Fgnunet.git fix --- diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c index 8e5ac9bc1..3ece6339d 100644 --- a/src/arm/test_exponential_backoff.c +++ b/src/arm/test_exponential_backoff.c @@ -360,12 +360,9 @@ kill_task (void *cbData, } /* Connect to the doNothing task */ doNothingConnection = GNUNET_CLIENT_connect ("do-nothing", cfg); -#if LOG_BACKOFF - if (NULL == doNothingConnection) - fprintf(killLogFilePtr, - "Unable to connect to do-nothing process!\n"); -#endif + GNUNET_assert (doNothingConnection != NULL); if (trialCount == 12) { + GNUNET_CLIENT_disconnect (doNothingConnection, GNUNET_NO); GNUNET_ARM_stop_service (arm, "do-nothing", TIMEOUT, @@ -373,7 +370,6 @@ kill_task (void *cbData, ok = 0; return; } - /* Use the created connection to kill the doNothingTask */ arm_service_shutdown(doNothingConnection, TIMEOUT,