struct StartContext *sctx = cls;
unsigned int i;
- GNUNET_TESTING_daemons_stop (sctx->group, GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30), &shutdown_callback, NULL);
+ GNUNET_TESTING_daemons_stop (sctx->group,
+ GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30),
+ &shutdown_callback,
+ NULL);
for (i=0;i<sctx->total;i++)
{
if (i < sctx->have)
GNUNET_CONFIGURATION_destroy (sctx->daemons[i]->cfg);
GNUNET_free (sctx->daemons[i]);
+ sctx->daemons[i] = NULL;
}
GNUNET_CONFIGURATION_destroy (sctx->cfg);
GNUNET_SCHEDULER_add_continuation (sctx->sched,
* @param total number of daemons to start
* @param daemons array of 'total' entries to be initialized
* (array must already be allocated, will be filled)
- * @param cont function to call when done
+ * @param cont function to call when done; note that if 'cont'
+ * is called with reason "TIMEOUT", then starting the
+ * daemons has failed and the client MUST NOT call
+ * 'GNUNET_FS_TEST_daemons_stop'!
* @param cont_cls closure for cont
*/
void