gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 03/17: handle transmissions initiated during disco


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 03/17: handle transmissions initiated during disconnect callbacks by dropping
Date: Mon, 09 Jan 2017 21:19:09 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit fa960b4f0d98235888fbaf5edfca2858ee102a34
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Jan 9 08:32:21 2017 +0100

    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);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]