-fixing #2155
authorChristian Grothoff <christian@grothoff.org>
Tue, 21 Feb 2012 21:46:12 +0000 (21:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 21 Feb 2012 21:46:12 +0000 (21:46 +0000)
src/fs/fs_download.c

index 760b62bc26f8fc4b388b30ddcdc9b73ebf1265b4..741ca19172336d8e26ff92e99248becc29e45b0f 100644 (file)
@@ -1679,10 +1679,11 @@ reconstruct_cb (void *cls, const struct ContentHashKey *chk, uint64_t offset,
       /* block matches, hence tree below matches;
        * this request is done! */
       dr->state = BRS_DOWNLOAD_UP;
-      GNUNET_assert (GNUNET_YES ==
-                    GNUNET_CONTAINER_multihashmap_remove (dc->active, &dr->chk.query, dr));
+      GNUNET_break (GNUNET_NO ==
+                   GNUNET_CONTAINER_multihashmap_remove (dc->active, &dr->chk.query, dr));
       if (GNUNET_YES == dr->is_pending)
       {
+       GNUNET_break (0); /* how did we get here? */
        GNUNET_CONTAINER_DLL_remove (dc->pending_head, dc->pending_tail, dr);
        dr->is_pending = GNUNET_NO;
       }