From dbef81a62985492402945501fbce95b9af7827ad Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Dec 2010 14:11:07 +0000 Subject: [PATCH] fix --- src/arm/test_exponential_backoff.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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, -- 2.25.1