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