From 42dc7e7b6cf4519e772a3d0a8a35fbf6cec97a4f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 29 Oct 2017 11:23:15 +0100 Subject: [PATCH] fix wrong condition, do only drop if it has not been dropped, instead of causing double-drop --- src/util/service.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/service.c b/src/util/service.c index 10dc93faf..782adf5c5 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -2402,7 +2402,7 @@ resume_client_receive (void *cls) GNUNET_YES); if (GNUNET_SYSERR == ret) { - if (NULL != c->drop_task) + if (NULL == c->drop_task) GNUNET_SERVICE_client_drop (c); return; } @@ -2514,6 +2514,10 @@ GNUNET_SERVICE_client_drop (struct GNUNET_SERVICE_Client *c) { struct GNUNET_SERVICE_Handle *sh = c->sh; + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Client dropped: %p (MQ: %p)\n", + c, + c->mq); if (NULL != c->drop_task) { /* asked to drop twice! */ -- 2.25.1