From 18616273e0fe896199e065965eecd41272350e77 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 9 May 2012 20:28:06 +0000 Subject: -trying to fix #2335 --- src/util/server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/server.c') 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); -- cgit v1.2.3