aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-29 11:23:15 +0100
committerChristian Grothoff <christian@grothoff.org>2017-10-29 11:23:15 +0100
commit42dc7e7b6cf4519e772a3d0a8a35fbf6cec97a4f (patch)
tree80357e1ba7819daa3f4bf0a8400a2c79a2449169 /src/util/service.c
parente429bb239daae8d0c241176252280caa94143312 (diff)
downloadgnunet-42dc7e7b6cf4519e772a3d0a8a35fbf6cec97a4f.tar.gz
gnunet-42dc7e7b6cf4519e772a3d0a8a35fbf6cec97a4f.zip
fix wrong condition, do only drop if it has not been dropped, instead of causing double-drop
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c6
1 files changed, 5 insertions, 1 deletions
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)
2402 GNUNET_YES); 2402 GNUNET_YES);
2403 if (GNUNET_SYSERR == ret) 2403 if (GNUNET_SYSERR == ret)
2404 { 2404 {
2405 if (NULL != c->drop_task) 2405 if (NULL == c->drop_task)
2406 GNUNET_SERVICE_client_drop (c); 2406 GNUNET_SERVICE_client_drop (c);
2407 return; 2407 return;
2408 } 2408 }
@@ -2514,6 +2514,10 @@ GNUNET_SERVICE_client_drop (struct GNUNET_SERVICE_Client *c)
2514{ 2514{
2515 struct GNUNET_SERVICE_Handle *sh = c->sh; 2515 struct GNUNET_SERVICE_Handle *sh = c->sh;
2516 2516
2517 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2518 "Client dropped: %p (MQ: %p)\n",
2519 c,
2520 c->mq);
2517 if (NULL != c->drop_task) 2521 if (NULL != c->drop_task)
2518 { 2522 {
2519 /* asked to drop twice! */ 2523 /* asked to drop twice! */