aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index ac326b83..607f544b 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -438,8 +438,9 @@ MHD_select (struct MHD_Daemon *daemon, int may_block)
438 { 438 {
439 /* accept only, have one thread per connection */ 439 /* accept only, have one thread per connection */
440 max = daemon->socket_fd; 440 max = daemon->socket_fd;
441 if (max != -1) 441 if (max == -1)
442 FD_SET (max, &rs); 442 return MHD_NO;
443 FD_SET (max, &rs);
443 } 444 }
444 if (may_block == MHD_NO) { 445 if (may_block == MHD_NO) {
445 timeout.tv_usec = 0; 446 timeout.tv_usec = 0;