additional santity check for MQ users
authorChristian Grothoff <christian@grothoff.org>
Tue, 19 Feb 2019 10:36:56 +0000 (11:36 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 19 Feb 2019 10:36:56 +0000 (11:36 +0100)
src/util/mq.c

index d2f5add19c9c30f25b667e9f9e090ecebff7a887..72ab8b72d0a6cfa524d4d8b64453244eb4dd81fa 100644 (file)
@@ -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,