From d76ca4e2e7e5c93ec92a4cf349ed62147a2b2148 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 19 Feb 2019 11:36:56 +0100 Subject: additional santity check for MQ users --- src/util/mq.c | 1 + 1 file changed, 1 insertion(+) 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, -- cgit v1.2.3