gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14109 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r14109 - gnunet/src/fs
Date: Tue, 4 Jan 2011 13:59:15 +0100

Author: grothoff
Date: 2011-01-04 13:59:15 +0100 (Tue, 04 Jan 2011)
New Revision: 14109

Modified:
   gnunet/src/fs/gnunet-service-fs_indexing.c
Log:
cancel hashing on shutdown

Modified: gnunet/src/fs/gnunet-service-fs_indexing.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_indexing.c  2011-01-04 12:51:59 UTC (rev 
14108)
+++ gnunet/src/fs/gnunet-service-fs_indexing.c  2011-01-04 12:59:15 UTC (rev 
14109)
@@ -22,11 +22,6 @@
  * @file fs/gnunet-service-fs_indexing.c
  * @brief program that provides indexing functions of the file-sharing service
  * @author Christian Grothoff
- *
- * TODO:
- * - consider doing GNUNET_CRYPTO_hash_file_cancel on active indexing
- *   jobs during shutdown (currently, shutdown will only happen after
- *   all of those are done, not sure if this is good or bad)
  */
 #include "platform.h"
 #include <float.h>
@@ -702,6 +697,8 @@
   while (NULL != (pos = indexed_files))
     {
       indexed_files = pos->next;
+      if (pos->fhc != NULL)
+       GNUNET_CRYPTO_hash_file_cancel (pos->fhc);
       GNUNET_free (pos);
     }
   cfg = NULL;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]