if (NULL != chn->mq)
{
- struct GNUNET_MQ_Envelope *last = GNUNET_MQ_get_last_envelope (chn->mq);
- if (NULL != last)
+ struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (chn->mq);
+ if (NULL != env)
{
- GNUNET_MQ_notify_sent (last,
- (GNUNET_MQ_NotifyCallback) channel_cleanup, chn);
+ GNUNET_MQ_notify_sent (env, (GNUNET_MQ_NotifyCallback) channel_cleanup, chn);
}
else
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Master client disconnected (%d), re-connecting\n",
(int) error);
- if (NULL != chn->mq)
- {
- GNUNET_MQ_destroy (chn->mq);
- chn->mq = NULL;
- }
if (NULL != chn->tmit)
{
GNUNET_PSYC_transmit_destroy (chn->tmit);
chn->tmit = NULL;
}
-
+ if (NULL != chn->mq)
+ {
+ GNUNET_MQ_destroy (chn->mq);
+ chn->mq = NULL;
+ }
chn->reconnect_task = GNUNET_SCHEDULER_add_delayed (chn->reconnect_delay,
master_reconnect,
mst);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Slave client disconnected (%d), re-connecting\n",
(int) error);
- if (NULL != chn->mq)
- {
- GNUNET_MQ_destroy (chn->mq);
- chn->mq = NULL;
- }
if (NULL != chn->tmit)
{
GNUNET_PSYC_transmit_destroy (chn->tmit);
chn->tmit = NULL;
}
+ if (NULL != chn->mq)
+ {
+ GNUNET_MQ_destroy (chn->mq);
+ chn->mq = NULL;
+ }
chn->reconnect_task = GNUNET_SCHEDULER_add_delayed (chn->reconnect_delay,
slave_reconnect,
slv);
struct Place *plc = &gst->plc;
struct GNUNET_CONTAINER_MultiHashMap *
plc_gst = GNUNET_CONTAINER_multihashmap_get (place_guests,
- &plc->pub_key_hash);
+ &plc->pub_key_hash);
GNUNET_assert (NULL != plc_gst); // FIXME
GNUNET_CONTAINER_multihashmap_remove (plc_gst, &plc->ego_pub_hash, gst);
if (NULL != plc->mq)
{
- struct GNUNET_MQ_Envelope *last = GNUNET_MQ_get_last_envelope (plc->mq);
- if (NULL != last)
+ struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (plc->mq);
+ if (NULL != env)
{
- GNUNET_MQ_notify_sent (last,
- (GNUNET_MQ_NotifyCallback) place_cleanup, plc);
+ GNUNET_MQ_notify_sent (env, (GNUNET_MQ_NotifyCallback) place_cleanup, plc);
}
else
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Host client disconnected (%d), re-connecting\n",
(int) error);
- if (NULL != plc->mq)
- {
- GNUNET_MQ_destroy (plc->mq);
- plc->mq = NULL;
- }
if (NULL != plc->tmit)
{
GNUNET_PSYC_transmit_destroy (plc->tmit);
plc->tmit = NULL;
}
+ if (NULL != plc->mq)
+ {
+ GNUNET_MQ_destroy (plc->mq);
+ plc->mq = NULL;
+ }
plc->reconnect_task = GNUNET_SCHEDULER_add_delayed (plc->reconnect_delay,
host_reconnect,
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Guest client disconnected (%d), re-connecting\n",
(int) error);
- if (NULL != plc->mq)
- {
- GNUNET_MQ_destroy (plc->mq);
- plc->mq = NULL;
- }
if (NULL != plc->tmit)
{
GNUNET_PSYC_transmit_destroy (plc->tmit);
plc->tmit = NULL;
}
+ if (NULL != plc->mq)
+ {
+ GNUNET_MQ_destroy (plc->mq);
+ plc->mq = NULL;
+ }
plc->reconnect_task = GNUNET_SCHEDULER_add_delayed (plc->reconnect_delay,
guest_reconnect,
if (NULL != app->mq)
{
- struct GNUNET_MQ_Envelope *last = GNUNET_MQ_get_last_envelope (app->mq);
- if (NULL != last)
+ struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (app->mq);
+ if (NULL != env)
{
- GNUNET_MQ_notify_sent (last,
- (GNUNET_MQ_NotifyCallback) app_cleanup, app);
+ GNUNET_MQ_notify_sent (env, (GNUNET_MQ_NotifyCallback) app_cleanup, app);
}
else
{
break;
default:
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "invalid test: %d\n", test);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Invalid test: #%u\n", test);
GNUNET_assert (0);
}
}