X-Git-Url: http://git.pk910.de/?p=ChatPrototype.git;a=blobdiff_plain;f=src%2FIOEngine_select.c;h=2d85d7cc10f0f3b7e7f6bdf597573a3a47e39ea1;hp=8c25ba6d1036309dcf2f7e1901dfccf18e95c805;hb=ff58997de5ecd501485f9214f4fbdc4766157b42;hpb=387875d6774f80fb54ea6e080177a0c3795ddf7d diff --git a/src/IOEngine_select.c b/src/IOEngine_select.c index 8c25ba6..2d85d7c 100644 --- a/src/IOEngine_select.c +++ b/src/IOEngine_select.c @@ -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);