X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FIOEngine_epoll.c;h=e36394960f3af206bf4fa594fc10732e2de324f1;hp=19c62272518c29804a26a41221577afba0b2d0eb;hb=8a1a716ef73af7b5288f7b5f8ab1b37be80f1247;hpb=291f15058a67b95bdfe6f6861cdfcb8ffd626149 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;