diff options
Diffstat (limited to 'src/fs/gnunet-auto-share.c')
-rw-r--r-- | src/fs/gnunet-auto-share.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/fs/gnunet-auto-share.c b/src/fs/gnunet-auto-share.c index aef66614c..96f86bf5d 100644 --- a/src/fs/gnunet-auto-share.c +++ b/src/fs/gnunet-auto-share.c | |||
@@ -95,11 +95,6 @@ static int disable_extractor; | |||
95 | static int do_disable_creation_time; | 95 | static int do_disable_creation_time; |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * Handle for the 'shutdown' task. | ||
99 | */ | ||
100 | static struct GNUNET_SCHEDULER_Task *kill_task; | ||
101 | |||
102 | /** | ||
103 | * Handle for the main task that does scanning and working. | 98 | * Handle for the main task that does scanning and working. |
104 | */ | 99 | */ |
105 | static struct GNUNET_SCHEDULER_Task *run_task; | 100 | static struct GNUNET_SCHEDULER_Task *run_task; |
@@ -321,7 +316,6 @@ save_state () | |||
321 | static void | 316 | static void |
322 | do_stop_task (void *cls) | 317 | do_stop_task (void *cls) |
323 | { | 318 | { |
324 | kill_task = NULL; | ||
325 | do_shutdown = GNUNET_YES; | 319 | do_shutdown = GNUNET_YES; |
326 | if (NULL != publish_proc) | 320 | if (NULL != publish_proc) |
327 | { | 321 | { |
@@ -729,10 +723,8 @@ run (void *cls, | |||
729 | run_task = GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_IDLE, | 723 | run_task = GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_IDLE, |
730 | &scan, | 724 | &scan, |
731 | NULL); | 725 | NULL); |
732 | kill_task = | 726 | GNUNET_SCHEDULER_add_shutdown (&do_stop_task, |
733 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 727 | NULL); |
734 | &do_stop_task, | ||
735 | NULL); | ||
736 | } | 728 | } |
737 | 729 | ||
738 | 730 | ||