fix wrong condition, do only drop if it has not been dropped, instead of causing...
authorChristian Grothoff <christian@grothoff.org>
Sun, 29 Oct 2017 10:23:15 +0000 (11:23 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 29 Oct 2017 10:23:15 +0000 (11:23 +0100)
src/util/service.c

index 10dc93fafe5257d82b151c712069bc1d3314c6c8..782adf5c5369d25dd1b355219b9a18387f0113ff 100644 (file)
@@ -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! */