aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_unindex.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-30 13:51:36 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-30 13:51:36 +0000
commite6b08db0728b172da76392967661c09e7bfdbb55 (patch)
treee3a3709f75600c088bff4147fe8ddfa34baf58ad /src/fs/fs_unindex.c
parente67c5886c645a5fda7753d3f72f62ea655d6655b (diff)
downloadgnunet-e6b08db0728b172da76392967661c09e7bfdbb55.tar.gz
gnunet-e6b08db0728b172da76392967661c09e7bfdbb55.zip
towards unindex deserialization
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r--src/fs/fs_unindex.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c
index 1b41e0c7a..acb3a2068 100644
--- a/src/fs/fs_unindex.c
+++ b/src/fs/fs_unindex.c
@@ -445,7 +445,11 @@ GNUNET_FS_unindex_stop (struct GNUNET_FS_UnindexContext *uc)
445 uc->state = UNINDEX_STATE_ABORTED; 445 uc->state = UNINDEX_STATE_ABORTED;
446 return; 446 return;
447 } 447 }
448 // FIXME: make unpersistent! 448 if (uc->serialization != NULL)
449 {
450 GNUNET_FS_remove_sync_file_ (uc->h, "unindex", uc->serialization);
451 uc->serialization = NULL;
452 }
449 make_unindex_status (&pi, uc, 453 make_unindex_status (&pi, uc,
450 (uc->state == UNINDEX_STATE_COMPLETE) 454 (uc->state == UNINDEX_STATE_COMPLETE)
451 ? uc->file_size : 0); 455 ? uc->file_size : 0);
@@ -456,6 +460,7 @@ GNUNET_FS_unindex_stop (struct GNUNET_FS_UnindexContext *uc)
456 &pi); 460 &pi);
457 GNUNET_break (NULL == uc->client_info); 461 GNUNET_break (NULL == uc->client_info);
458 GNUNET_free (uc->filename); 462 GNUNET_free (uc->filename);
463 GNUNET_free_non_null (uc->serialization);
459 GNUNET_free (uc); 464 GNUNET_free (uc);
460} 465}
461 466