aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_search.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-12 13:29:05 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-12 13:29:05 +0000
commita6f43190ab793b3487da2133735e166e337000c4 (patch)
treefc2dacc6a36f3ec04cf86a14cdea9c5bdf45274f /src/fs/fs_search.c
parent61cfd3340e67672f351ab92dab7da72dca058c79 (diff)
downloadgnunet-a6f43190ab793b3487da2133735e166e337000c4.tar.gz
gnunet-a6f43190ab793b3487da2133735e166e337000c4.zip
cancel pending write if we are just dead anyway
Diffstat (limited to 'src/fs/fs_search.c')
-rw-r--r--src/fs/fs_search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c
index 90a28052f..8d9050051 100644
--- a/src/fs/fs_search.c
+++ b/src/fs/fs_search.c
@@ -715,7 +715,7 @@ try_reconnect (struct GNUNET_FS_SearchContext *sc)
715{ 715{
716 if (NULL != sc->client) 716 if (NULL != sc->client)
717 { 717 {
718 GNUNET_CLIENT_disconnect (sc->client); 718 GNUNET_CLIENT_disconnect (sc->client, GNUNET_NO);
719 sc->client = NULL; 719 sc->client = NULL;
720 } 720 }
721 sc->task 721 sc->task
@@ -858,7 +858,7 @@ GNUNET_FS_search_pause (struct GNUNET_FS_SearchContext *sc)
858 sc->task); 858 sc->task);
859 sc->task = GNUNET_SCHEDULER_NO_TASK; 859 sc->task = GNUNET_SCHEDULER_NO_TASK;
860 if (NULL != sc->client) 860 if (NULL != sc->client)
861 GNUNET_CLIENT_disconnect (sc->client); 861 GNUNET_CLIENT_disconnect (sc->client, GNUNET_NO);
862 sc->client = NULL; 862 sc->client = NULL;
863 // FIXME: make persistent! 863 // FIXME: make persistent!
864 // FIXME: should this freeze all active probes? 864 // FIXME: should this freeze all active probes?
@@ -967,7 +967,7 @@ GNUNET_FS_search_stop (struct GNUNET_FS_SearchContext *sc)
967 GNUNET_SCHEDULER_cancel (sc->h->sched, 967 GNUNET_SCHEDULER_cancel (sc->h->sched,
968 sc->task); 968 sc->task);
969 if (NULL != sc->client) 969 if (NULL != sc->client)
970 GNUNET_CLIENT_disconnect (sc->client); 970 GNUNET_CLIENT_disconnect (sc->client, GNUNET_NO);
971 GNUNET_CONTAINER_multihashmap_destroy (sc->master_result_map); 971 GNUNET_CONTAINER_multihashmap_destroy (sc->master_result_map);
972 for (i=0;i<sc->uri->data.ksk.keywordCount;i++) 972 for (i=0;i<sc->uri->data.ksk.keywordCount;i++)
973 GNUNET_CONTAINER_multihashmap_destroy (sc->requests[i].results); 973 GNUNET_CONTAINER_multihashmap_destroy (sc->requests[i].results);