From 88d047a2472a83a4552507ff99ad23af27852dcc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 15 Mar 2011 14:02:06 +0000 Subject: [PATCH] fix --- src/fs/gnunet-service-fs_pe.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c index 7b0f874ff..816328392 100644 --- a/src/fs/gnunet-service-fs_pe.c +++ b/src/fs/gnunet-service-fs_pe.c @@ -174,6 +174,7 @@ transmit_message_callback (void *cls, struct GSF_RequestPlan *rp; size_t msize; + pp->pth = NULL; if (NULL == buf) { /* failed, try again... */ @@ -181,6 +182,11 @@ transmit_message_callback (void *cls, return 0; } rp = GNUNET_CONTAINER_heap_peek (pp->priority_heap); + if (NULL == rp) + { + pp->task = GNUNET_SCHEDULER_add_now (&schedule_peer_transmission, pp); + return 0; + } msize = GSF_pending_request_get_message_ (rp->pr, buf_size, buf); if (msize > buf_size) { -- 2.25.1