From: Christian Grothoff Date: Mon, 9 Jan 2017 07:32:21 +0000 (+0100) Subject: handle transmissions initiated during disconnect callbacks by dropping X-Git-Tag: taler-0.2.1~489 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fa960b4f0d98235888fbaf5edfca2858ee102a34;p=oweals%2Fgnunet.git handle transmissions initiated during disconnect callbacks by dropping --- 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);