aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/server.c3
1 files changed, 2 insertions, 1 deletions
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)
1046{ 1046{
1047 struct GNUNET_SERVER_Client *client = cls; 1047 struct GNUNET_SERVER_Client *client = cls;
1048 1048
1049 GNUNET_assert (GNUNET_YES != client->shutdown_now);
1049 client->restart_task = GNUNET_SCHEDULER_NO_TASK; 1050 client->restart_task = GNUNET_SCHEDULER_NO_TASK;
1050 if (GNUNET_NO == client->receive_pending) 1051 if (GNUNET_NO == client->receive_pending)
1051 { 1052 {
@@ -1488,7 +1489,7 @@ GNUNET_SERVER_receive_done (struct GNUNET_SERVER_Client *client, int success)
1488 { 1489 {
1489 LOG (GNUNET_ERROR_TYPE_DEBUG, 1490 LOG (GNUNET_ERROR_TYPE_DEBUG,
1490 "GNUNET_SERVER_receive_done called with failure indication\n"); 1491 "GNUNET_SERVER_receive_done called with failure indication\n");
1491 if (client->reference_count > 0) 1492 if ( (client->reference_count > 0) || (client->suspended > 0) )
1492 client->shutdown_now = GNUNET_YES; 1493 client->shutdown_now = GNUNET_YES;
1493 else 1494 else
1494 GNUNET_SERVER_client_disconnect (client); 1495 GNUNET_SERVER_client_disconnect (client);