diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-01-07 21:10:24 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-01-07 21:10:24 +0000 |
commit | 1b67c9c5424c96ff4e30d12b8d58cec315f000a1 (patch) | |
tree | 65a03cf96bd718d3e57bd2d7f0f0a648cb1986f4 /src/rest | |
parent | 4c2b05fe49e5ee49c69337e763a3572af59e78d5 (diff) | |
download | gnunet-1b67c9c5424c96ff4e30d12b8d58cec315f000a1.tar.gz gnunet-1b67c9c5424c96ff4e30d12b8d58cec315f000a1.zip |
- Finish refactoring
Diffstat (limited to 'src/rest')
-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, |