diff options
Diffstat (limited to 'src/util/server.c')
-rw-r--r-- | src/util/server.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/server.c b/src/util/server.c index b1edf2c45..409e89f16 100644 --- a/src/util/server.c +++ b/src/util/server.c | |||
@@ -1396,7 +1396,11 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client) | |||
1396 | GNUNET_SCHEDULER_cancel (client->warn_task); | 1396 | GNUNET_SCHEDULER_cancel (client->warn_task); |
1397 | client->warn_task = GNUNET_SCHEDULER_NO_TASK; | 1397 | client->warn_task = GNUNET_SCHEDULER_NO_TASK; |
1398 | } | 1398 | } |
1399 | GNUNET_assert (GNUNET_NO == client->receive_pending); | 1399 | if (GNUNET_YES == client->receive_pending) |
1400 | { | ||
1401 | GNUNET_CONNECTION_receive_cancel (client->connection); | ||
1402 | client->receive_pending = GNUNET_NO; | ||
1403 | } | ||
1400 | GNUNET_free (client); | 1404 | GNUNET_free (client); |
1401 | /* we might be in soft-shutdown, test if we're done */ | 1405 | /* we might be in soft-shutdown, test if we're done */ |
1402 | if (NULL != server) | 1406 | if (NULL != server) |