fix handling of search stop with active download
authorChristian Grothoff <christian@grothoff.org>
Sun, 27 Jun 2010 11:01:27 +0000 (11:01 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 27 Jun 2010 11:01:27 +0000 (11:01 +0000)
src/fs/fs_search.c

index da61cea57e65c16e4d9d27cecb011bac706cdba4..2c7d34b08a2cea32e39950de217997137c1a9c2b 100644 (file)
@@ -1424,6 +1424,9 @@ search_result_free (void *cls,
   if (NULL != sr->download)
     {
       sr->download->search = NULL;
+      sr->download->top = GNUNET_FS_make_top (sr->download->h,
+                                             &GNUNET_FS_download_signal_suspend_,
+                                             sr->download);
       if (NULL != sr->download->serialization)
        {
          GNUNET_FS_remove_sync_file_ (sc->h,