From 4dacfaa309f144642f5b10af21c4962c5c2e86bf Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 16 Feb 2011 16:38:29 +0000 Subject: [PATCH] missing NO TASK --- src/testing/testing.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/testing/testing.c b/src/testing/testing.c index d0b0c1ee5..ddfe17d43 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -1540,7 +1540,10 @@ connect_notify (void *cls, ctx->connected = GNUNET_YES; ctx->distance = 0; /* FIXME: distance */ if (ctx->hello_send_task != GNUNET_SCHEDULER_NO_TASK) - GNUNET_SCHEDULER_cancel(ctx->hello_send_task); + { + GNUNET_SCHEDULER_cancel(ctx->hello_send_task); + ctx->hello_send_task = GNUNET_SCHEDULER_NO_TASK; + } GNUNET_SCHEDULER_cancel (ctx->timeout_task); ctx->timeout_task = GNUNET_SCHEDULER_add_now (¬ify_connect_result, ctx); -- 2.25.1