aboutsummaryrefslogtreecommitdiff
path: root/src/multicast/test_multicast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multicast/test_multicast.c')
-rw-r--r--src/multicast/test_multicast.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/multicast/test_multicast.c b/src/multicast/test_multicast.c
index a8a8cb611..a6b0c7dd6 100644
--- a/src/multicast/test_multicast.c
+++ b/src/multicast/test_multicast.c
@@ -45,7 +45,7 @@ static const struct GNUNET_CONFIGURATION_Handle *cfg;
45/** 45/**
46 * Handle for task for timeout termination. 46 * Handle for task for timeout termination.
47 */ 47 */
48static GNUNET_SCHEDULER_TaskIdentifier end_badly_task; 48static struct GNUNET_SCHEDULER_Task * end_badly_task;
49 49
50 50
51/** 51/**
@@ -96,10 +96,10 @@ end ()
96{ 96{
97 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Ending tests.\n"); 97 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Ending tests.\n");
98 98
99 if (end_badly_task != GNUNET_SCHEDULER_NO_TASK) 99 if (end_badly_task != NULL)
100 { 100 {
101 GNUNET_SCHEDULER_cancel (end_badly_task); 101 GNUNET_SCHEDULER_cancel (end_badly_task);
102 end_badly_task = GNUNET_SCHEDULER_NO_TASK; 102 end_badly_task = NULL;
103 } 103 }
104 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MILLISECONDS, 104 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MILLISECONDS,
105 &end_normally, NULL); 105 &end_normally, NULL);