gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] 06/28: properly handle error on empty queue


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 06/28: properly handle error on empty queue
Date: Fri, 10 Mar 2017 18:18:50 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

commit 6329bd3a348d51927b8188a04a1723c6e2edae1f
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 10 17:28:03 2017 +0100

    properly handle error on empty queue
---
 src/datastore/datastore_api.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c
index cf7c7bb1a..ef7cd7532 100644
--- a/src/datastore/datastore_api.c
+++ b/src/datastore/datastore_api.c
@@ -323,14 +323,14 @@ mq_error_handler (void *cls,
        "MQ error, reconnecting to DATASTORE\n");
   do_disconnect (h);
   qe = h->queue_head;
+  if (NULL == qe)
+    return;
   if (NULL != qe->delay_warn_task)
   {
     GNUNET_SCHEDULER_cancel (qe->delay_warn_task);
     qe->delay_warn_task = NULL;
   }
-
-  if ( (NULL != qe) &&
-       (NULL == qe->env) )
+  if (NULL == qe->env)
   {
     union QueueContext qc = qe->qc;
     uint16_t rt = qe->response_type;

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



reply via email to

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