async close issue

This commit is contained in:
Christian Grothoff
2008-10-02 16:17:49 +00:00
parent 1e1ddd66fb
commit 7ba36f02ae
+1 -1
View File
@@ -273,7 +273,7 @@ MHD_handle_connection (void *data)
break;
}
/* call appropriate connection handler if necessary */
if (FD_ISSET (con->socket_fd, &rs))
if ((con->socket_fd != -1) && (FD_ISSET (con->socket_fd, &rs)))
con->read_handler (con);
if ((con->socket_fd != -1) && (FD_ISSET (con->socket_fd, &ws)))
con->write_handler (con);