add assertion
authorChristian Grothoff <christian@grothoff.org>
Thu, 28 Dec 2017 22:45:22 +0000 (23:45 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 28 Dec 2017 22:46:08 +0000 (23:46 +0100)
src/cadet/cadet_api.c

index 37de27db13cc644bc33775fa0226bf504ab028f7..366e31405a8903c43a28a28a8fb8e827c9675a25 100644 (file)
@@ -1158,6 +1158,7 @@ reconnect (struct GNUNET_CADET_Handle *h)
     GNUNET_MQ_handler_end ()
   };
 
+  GNUNET_assert (NULL == h->mq);
   h->mq = GNUNET_CLIENT_connect (h->cfg,
                                  "cadet",
                                  handlers,