This commit is contained in:
Christian Grothoff
2007-08-15 08:42:54 +00:00
parent d8211f1b22
commit d2ea952b60
+3 -2
View File
@@ -438,8 +438,9 @@ MHD_select (struct MHD_Daemon *daemon, int may_block)
{
/* accept only, have one thread per connection */
max = daemon->socket_fd;
if (max != -1)
FD_SET (max, &rs);
if (max == -1)
return MHD_NO;
FD_SET (max, &rs);
}
if (may_block == MHD_NO) {
timeout.tv_usec = 0;