projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' into IOMultiplexer
[NeonServV5.git]
/
src
/
IOEngine_select.c
diff --git
a/src/IOEngine_select.c
b/src/IOEngine_select.c
index 8c25ba6d1036309dcf2f7e1901dfccf18e95c805..2d85d7cc10f0f3b7e7f6bdf597573a3a47e39ea1 100644
(file)
--- 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);