assert no MQ error after MQ destroy
authorChristian Grothoff <christian@grothoff.org>
Tue, 3 Jul 2018 15:36:55 +0000 (17:36 +0200)
committerChristian Grothoff <christian@grothoff.org>
Tue, 3 Jul 2018 15:36:55 +0000 (17:36 +0200)
src/cadet/cadet_api.c

index 319279110d3c3e3d5ef76de1a9a6b2eaef6721e5..92dd39b971d40eba59fde35d8c232d06d5120a22 100644 (file)
@@ -841,6 +841,7 @@ handle_mq_error (void *cls,
                                            h);
   GNUNET_MQ_destroy (h->mq);
   h->mq = NULL;
+  GNUNET_assert (NULL == h->reconnect_task);
   h->reconnect_task = GNUNET_SCHEDULER_add_delayed (h->reconnect_time,
                                                    &reconnect_cbk,
                                                    h);