X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FIOEngine_epoll.c;h=e36394960f3af206bf4fa594fc10732e2de324f1;hp=19c62272518c29804a26a41221577afba0b2d0eb;hb=6b235c4b3e0ff537bff312c5f18104e657b02883;hpb=59659c9123e0b56c34f5fa9281566f574365deb5 diff --git a/src/IOEngine_epoll.c b/src/IOEngine_epoll.c index 19c6227..e363949 100644 --- a/src/IOEngine_epoll.c +++ b/src/IOEngine_epoll.c @@ -55,6 +55,10 @@ static void engine_epoll_remove(struct IODescriptor *iofd) { static void engine_epoll_update(struct IODescriptor *iofd) { if(iofd->type == IOTYPE_TIMER) return; + if(iofd->state == IO_CLOSED) { + engine_epoll_remove(iofd); + return; + } struct epoll_event evt; int res;