commit fa960b4f0d98235888fbaf5edfca2858ee102a34
parent 2024b175d543b5a36dab4e5a616a11e5ab284d29
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 9 Jan 2017 08:32:21 +0100
handle transmissions initiated during disconnect callbacks by dropping
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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);