aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport-profiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-transport-profiler.c')
-rw-r--r--src/transport/gnunet-transport-profiler.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/transport/gnunet-transport-profiler.c b/src/transport/gnunet-transport-profiler.c
index 624d1a16c..af47c5c56 100644
--- a/src/transport/gnunet-transport-profiler.c
+++ b/src/transport/gnunet-transport-profiler.c
@@ -146,11 +146,6 @@ static struct GNUNET_TRANSPORT_Blacklist *bl_handle;
146static struct GNUNET_PeerIdentity pid; 146static struct GNUNET_PeerIdentity pid;
147 147
148/** 148/**
149 * Task scheduled for cleanup / termination of the process.
150 */
151static struct GNUNET_SCHEDULER_Task * end;
152
153/**
154 * Selected level of verbosity. 149 * Selected level of verbosity.
155 */ 150 */
156static int verbosity; 151static int verbosity;
@@ -380,9 +375,7 @@ iteration_done ()
380 if (it_count == benchmark_iterations) 375 if (it_count == benchmark_iterations)
381 { 376 {
382 benchmark_running = GNUNET_NO; 377 benchmark_running = GNUNET_NO;
383 if (NULL != end) 378 GNUNET_SCHEDULER_shutdown ();
384 GNUNET_SCHEDULER_cancel (end);
385 end = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
386 return; 379 return;
387 } 380 }
388 else 381 else
@@ -570,9 +563,8 @@ testservice_task (void *cls, int result)
570 ats_sh = GNUNET_ATS_connectivity_suggest (ats, 563 ats_sh = GNUNET_ATS_connectivity_suggest (ats,
571 &pid, 564 &pid,
572 1); 565 1);
573 end = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, 566 GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
574 &shutdown_task, 567 NULL);
575 NULL);
576} 568}
577 569
578 570