assertion is excessively rigid
[oweals/gnunet.git] / src / namestore / gnunet-service-namestore.c
index 2d60205526fc1b9b80242b4303dae092065b8b2d..acb6a745a61c133aaa74134576e6c6558dc85a02 100644 (file)
@@ -920,7 +920,10 @@ continue_store_activity (struct StoreActivity *sa)
            (0 != memcmp (&zm->zone,
                          &zero,
                          sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
-        sa->zm_pos = zm->next; /* not interesting to this monitor */
+       {
+         sa->zm_pos = zm->next; /* not interesting to this monitor */
+         continue; // -- fails tests, but why not here?
+       }
       if (zm->limit == zm->iteration_cnt)
       {
         zm->sa_waiting = GNUNET_YES;
@@ -1978,12 +1981,7 @@ monitor_iterate_cb (void *cls,
   struct ZoneMonitor *zm = cls;
 
   zm->seq = seq;
-  if (NULL == name)
-  {
-    /* finished with iteration */
-    monitor_sync (zm);
-    return;
-  }
+  GNUNET_assert (NULL != name);
   GNUNET_STATISTICS_update (statistics,
                             "Monitor notifications sent",
                             1,