From: Christian Grothoff Date: Sun, 29 Oct 2017 10:23:15 +0000 (+0100) Subject: fix wrong condition, do only drop if it has not been dropped, instead of causing... X-Git-Tag: gnunet-0.11.0rc0~48^2~1^2~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=42dc7e7b6cf4519e772a3d0a8a35fbf6cec97a4f;p=oweals%2Fgnunet.git fix wrong condition, do only drop if it has not been dropped, instead of causing double-drop --- 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! */