$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/testing/libgnunettesting.la \
libgnunetcadettest.a \
- libgnunetcadetnew.la \
+ libgnunetcadet.la \
$(top_builddir)/src/testbed/libgnunettestbed.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la
dep_cadet_test_lib = \
- libgnunetcadetnew.la \
+ libgnunetcadet.la \
libgnunetcadettest.a \
$(top_builddir)/src/statistics/libgnunetstatistics.la
}
-/**
- * Allow the MQ implementation to send the next message.
- *
- * @param cls Closure (channel whose mq to activate).
- */
-static void
-cadet_mq_send_continue (void *cls)
-{
- struct GNUNET_CADET_Channel *ch = cls;
-
- ch->mq_cont = NULL;
- GNUNET_assert (NULL == ch->pending_env);
- GNUNET_MQ_impl_send_continue (ch->mq);
-}
-
-
/**
* Transmit the next message from our queue.
*
return;
}
ch->allow_send--;
- GNUNET_MQ_impl_send_in_flight (ch->mq);
ch->pending_env = NULL;
- GNUNET_MQ_notify_sent (env,
- &cadet_mq_send_continue,
- ch);
GNUNET_MQ_send (ch->cadet->mq,
env);
+ GNUNET_MQ_impl_send_continue (ch->mq);
}
GNUNET_assert (NULL != ch->pending_env);
GNUNET_MQ_discard (ch->pending_env);
ch->pending_env = NULL;
+ if (NULL != ch->mq_cont)
+ {
+ GNUNET_SCHEDULER_cancel (ch->mq_cont);
+ ch->mq_cont = NULL;
+ }
}
* try to send the next message until #gnunet_mq_impl_send_continue
* is called.
*
- * only useful for implementing message queues, results in undefined
+ * Only useful for implementing message queues, results in undefined
* behavior if not used carefully.
*
* @param mq message queue to send the next message with