From: Fredrik Tolf Date: Wed, 18 May 2016 03:41:32 +0000 (+0200) Subject: Merge branch 'duplex' of nerv.dolda.net:src/ashd into duplex X-Git-Url: http://dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=f9cc95f36f96693b229d5715f18033f69a4efe70;hp=be8b78f751ab2ffcf9f66922e0689c09c613f451 Merge branch 'duplex' of nerv.dolda.net:src/ashd into duplex --- diff --git a/lib/mtio-epoll.c b/lib/mtio-epoll.c index d9e794e..af7cd27 100644 --- a/lib/mtio-epoll.c +++ b/lib/mtio-epoll.c @@ -166,7 +166,7 @@ struct selected mblock(time_t to, int n, struct selected *spec) .th = current, }; if(addblock(&bls[i])) { - for(i--; i >= 0; i++) + for(i--; i >= 0; i--) remblock(&bls[i]); return((struct selected){.fd = -1, .ev = -1}); }