summaryrefslogtreecommitdiff
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
parent663601078bad36f265f218ebcdcfa53269698577 (diff)
additional santity check for MQ users
-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)
{
/* complex case, we already started with transmitting
the message using the callbacks. */
+ GNUNET_assert (GNUNET_NO == mq->in_flight);
GNUNET_assert (0 < mq->queue_length);
mq->queue_length--;
mq->cancel_impl (mq,