fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 25 Mar 2010 15:01:38 +0000 (15:01 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 25 Mar 2010 15:01:38 +0000 (15:01 +0000)
src/fs/gnunet-service-fs.c

index 7a13840a29c5da8b9f4659cf6613a2f119f1b121..b8c9d91fae532c59024b9206608461ec8e3e23ef 100644 (file)
@@ -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);