diff options
Diffstat (limited to 'src/rest/gnunet-rest-server.c')
-rw-r--r-- | src/rest/gnunet-rest-server.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c index ba18c5dfa..0e7213b64 100644 --- a/src/rest/gnunet-rest-server.c +++ b/src/rest/gnunet-rest-server.c | |||
@@ -464,15 +464,8 @@ schedule_httpd () | |||
464 | } | 464 | } |
465 | if (NULL != httpd_task) | 465 | if (NULL != httpd_task) |
466 | GNUNET_SCHEDULER_cancel (httpd_task); | 466 | GNUNET_SCHEDULER_cancel (httpd_task); |
467 | if ( (MHD_YES != haveto) && | 467 | if ( (MHD_YES == haveto) || |
468 | (-1 == max)) | 468 | (-1 != max)) |
469 | { | ||
470 | /* daemon is idle, kill after timeout */ | ||
471 | httpd_task = GNUNET_SCHEDULER_add_delayed (MHD_CACHE_TIMEOUT, | ||
472 | &kill_httpd_task, | ||
473 | NULL); | ||
474 | } | ||
475 | else | ||
476 | { | 469 | { |
477 | httpd_task = | 470 | httpd_task = |
478 | GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, | 471 | GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, |