X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FIOEngine_select.c;h=2d85d7cc10f0f3b7e7f6bdf597573a3a47e39ea1;hb=58b5a3c9d422799f1a5d612cc6ea8afb6fdecca5;hp=74e8431dfccca8a75041483d3fc5808d0a585911;hpb=59659c9123e0b56c34f5fa9281566f574365deb5;p=NeonServV5.git
diff --git a/src/IOEngine_select.c b/src/IOEngine_select.c
index 74e8431..2d85d7c 100644
--- a/src/IOEngine_select.c
+++ b/src/IOEngine_select.c
@@ -15,12 +15,12 @@
* along with this program. If not, see .
*/
#include "IOEngine.h"
+#include
#ifdef WIN32
#define _WIN32_WINNT 0x501
#include
#include
#else
-#include
#include
#include
#endif
@@ -99,6 +99,8 @@ static void engine_select_loop(struct timeval *timeout) {
#endif
}
else if(iofd->type == IOTYPE_SERVER || iofd->type == IOTYPE_CLIENT) {
+ if(iofd->state == IO_CLOSED)
+ continue;
if(iofd->fd > fds_size)
fds_size = iofd->fd;
FD_SET(iofd->fd, &read_fds);