* multiple of 64 bits.
*/
int32_t was_transmitted;
-
+
};
/**
free_queue_entry (qe);
if (NULL == h->client)
return; /* forced disconnect */
- rc.cont (rc.cont_cls,
- GNUNET_SYSERR,
- _("Failed to receive response from database."));
+ if (rc.cont != NULL)
+ rc.cont (rc.cont_cls,
+ GNUNET_SYSERR,
+ _("Failed to receive status response from database."));
if (was_transmitted == GNUNET_YES)
do_disconnect (h);
return;
GNUNET_break (0);
h->retry_time = GNUNET_TIME_UNIT_ZERO;
do_disconnect (h);
- rc.cont (rc.cont_cls,
- GNUNET_SYSERR,
- _("Error reading response from datastore service"));
+ if (rc.cont != NULL)
+ rc.cont (rc.cont_cls,
+ GNUNET_SYSERR,
+ _("Error reading response from datastore service"));
return;
}
sm = (const struct StatusMessage*) msg;
emsg);
#endif
process_queue (h);
- rc.cont (rc.cont_cls,
- status,
- emsg);
+ if (rc.cont != NULL)
+ rc.cont (rc.cont_cls,
+ status,
+ emsg);
}
qe->qc.rc.iter = NULL;
if (GNUNET_YES != h->in_receive)
GNUNET_DATASTORE_get_next (h, GNUNET_YES);
- return;
}
- reconnect = GNUNET_YES;
+ else
+ {
+ qe->qc.sc.cont = NULL;
+ }
+ return;
}
free_queue_entry (qe);
- if (reconnect)
- {
- h->retry_time = GNUNET_TIME_UNIT_ZERO;
- do_disconnect (h);
- }
- else
- {
- process_queue (h);
- }
+ process_queue (h);
}