From fa960b4f0d98235888fbaf5edfca2858ee102a34 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 9 Jan 2017 08:32:21 +0100 Subject: [PATCH] handle transmissions initiated during disconnect callbacks by dropping --- src/core/core_api_2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/core_api_2.c b/src/core/core_api_2.c index d810bf2ec..7826cd03e 100644 --- a/src/core/core_api_2.c +++ b/src/core/core_api_2.c @@ -299,6 +299,12 @@ core_mq_send_impl (struct GNUNET_MQ_Handle *mq, int cork; enum GNUNET_CORE_Priority priority; + if (NULL == h->mq) + { + /* We're currently reconnecting, pretend this worked */ + GNUNET_MQ_impl_send_continue (mq); + return; + } GNUNET_assert (NULL == pr->env); /* extract options from envelope */ env = GNUNET_MQ_get_current_envelope (mq); -- 2.25.1