aboutsummaryrefslogtreecommitdiff
path: root/src/util/mq.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-19 11:36:56 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-19 11:36:56 +0100
commitd76ca4e2e7e5c93ec92a4cf349ed62147a2b2148 (patch)
tree08f1b13f4b4ee34b652c0a899e30c541e8365c57 /src/util/mq.c
parent663601078bad36f265f218ebcdcfa53269698577 (diff)
downloadgnunet-d76ca4e2e7e5c93ec92a4cf349ed62147a2b2148.tar.gz
gnunet-d76ca4e2e7e5c93ec92a4cf349ed62147a2b2148.zip
additional santity check for MQ users
Diffstat (limited to 'src/util/mq.c')
-rw-r--r--src/util/mq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index d2f5add19..72ab8b72d 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -964,6 +964,7 @@ GNUNET_MQ_send_cancel (struct GNUNET_MQ_Envelope *ev)
964 { 964 {
965 /* complex case, we already started with transmitting 965 /* complex case, we already started with transmitting
966 the message using the callbacks. */ 966 the message using the callbacks. */
967 GNUNET_assert (GNUNET_NO == mq->in_flight);
967 GNUNET_assert (0 < mq->queue_length); 968 GNUNET_assert (0 < mq->queue_length);
968 mq->queue_length--; 969 mq->queue_length--;
969 mq->cancel_impl (mq, 970 mq->cancel_impl (mq,