From: Christian Grothoff Date: Thu, 25 Mar 2010 15:01:38 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~22367 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c3108c3c12f86ea683e82356becca3ed8e24624b;p=oweals%2Fgnunet.git fix --- diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 7a13840a2..b8c9d91fa 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -1313,7 +1313,16 @@ target_reservation_cb (void *cls, uint32_t bm; pr->irc = NULL; - GNUNET_assert (peer != NULL); + if (peer == NULL) + { + /* error in communication with core, try again later */ + if (pr->task == GNUNET_SCHEDULER_NO_TASK) + pr->task = GNUNET_SCHEDULER_add_delayed (sched, + get_processing_delay (), + &forward_request_task, + pr); + return; + } // (3) transmit, update ttl/priority cp = GNUNET_CONTAINER_multihashmap_get (connected_peers, &peer->hashPubKey);