diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-01-04 12:59:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-01-04 12:59:15 +0000 |
commit | e238459109bf91ee9f15c5d30b0158527fad8eb5 (patch) | |
tree | 94c4456a2da09c8b1e810d66caa82e597d46c320 /src/fs/gnunet-service-fs_indexing.c | |
parent | c2ace9d2e97b6f43cea8cad65157b26ee0123cce (diff) | |
download | gnunet-e238459109bf91ee9f15c5d30b0158527fad8eb5.tar.gz gnunet-e238459109bf91ee9f15c5d30b0158527fad8eb5.zip |
cancel hashing on shutdown
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.c')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index 2e95f454f..363755169 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c | |||
@@ -22,11 +22,6 @@ | |||
22 | * @file fs/gnunet-service-fs_indexing.c | 22 | * @file fs/gnunet-service-fs_indexing.c |
23 | * @brief program that provides indexing functions of the file-sharing service | 23 | * @brief program that provides indexing functions of the file-sharing service |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | * | ||
26 | * TODO: | ||
27 | * - consider doing GNUNET_CRYPTO_hash_file_cancel on active indexing | ||
28 | * jobs during shutdown (currently, shutdown will only happen after | ||
29 | * all of those are done, not sure if this is good or bad) | ||
30 | */ | 25 | */ |
31 | #include "platform.h" | 26 | #include "platform.h" |
32 | #include <float.h> | 27 | #include <float.h> |
@@ -702,6 +697,8 @@ shutdown_task (void *cls, | |||
702 | while (NULL != (pos = indexed_files)) | 697 | while (NULL != (pos = indexed_files)) |
703 | { | 698 | { |
704 | indexed_files = pos->next; | 699 | indexed_files = pos->next; |
700 | if (pos->fhc != NULL) | ||
701 | GNUNET_CRYPTO_hash_file_cancel (pos->fhc); | ||
705 | GNUNET_free (pos); | 702 | GNUNET_free (pos); |
706 | } | 703 | } |
707 | cfg = NULL; | 704 | cfg = NULL; |