From: Christian Grothoff Date: Wed, 9 May 2012 20:28:06 +0000 (+0000) Subject: -trying to fix #2335 X-Git-Tag: initial-import-from-subversion-38251~13562 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=18616273e0fe896199e065965eecd41272350e77;p=oweals%2Fgnunet.git -trying to fix #2335 --- diff --git a/src/util/server.c b/src/util/server.c index fab68d46a..0285b82ae 100644 --- a/src/util/server.c +++ b/src/util/server.c @@ -1046,6 +1046,7 @@ restart_processing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { struct GNUNET_SERVER_Client *client = cls; + GNUNET_assert (GNUNET_YES != client->shutdown_now); client->restart_task = GNUNET_SCHEDULER_NO_TASK; if (GNUNET_NO == client->receive_pending) { @@ -1488,7 +1489,7 @@ GNUNET_SERVER_receive_done (struct GNUNET_SERVER_Client *client, int success) { LOG (GNUNET_ERROR_TYPE_DEBUG, "GNUNET_SERVER_receive_done called with failure indication\n"); - if (client->reference_count > 0) + if ( (client->reference_count > 0) || (client->suspended > 0) ) client->shutdown_now = GNUNET_YES; else GNUNET_SERVER_client_disconnect (client);