aboutsummaryrefslogtreecommitdiff
path: root/src/util/server.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-09 20:28:06 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-09 20:28:06 +0000
commit18616273e0fe896199e065965eecd41272350e77 (patch)
treea87016da3e18bdc2389fd2c8b736d82f11d81ac5 /src/util/server.c
parent764cc859e7be44bf79a5a66e1aa6043a1c350b98 (diff)
downloadgnunet-18616273e0fe896199e065965eecd41272350e77.tar.gz
gnunet-18616273e0fe896199e065965eecd41272350e77.zip
-trying to fix #2335
Diffstat (limited to 'src/util/server.c')
-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);