]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
kqueue notify: Don't assert-cras if kevent() returns multiple events for the same io.
authorTimo Sirainen <tss@iki.fi>
Tue, 16 Dec 2008 03:30:31 +0000 (05:30 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 16 Dec 2008 03:30:31 +0000 (05:30 +0200)
--HG--
branch : HEAD

src/lib/ioloop-notify-kqueue.c

index 9ae2a9ef07d8eba136c7883ada86611a79b43605..bb4738b01ca77a974352c4c26daf538f36a6d273 100644 (file)
@@ -63,7 +63,7 @@ static void event_callback(struct ioloop_notify_handler_context *ctx)
 
        for (i = 0; i < ret; i++) {
                io = (void *)events[i].udata;
-               i_assert(io->refcount == 1);
+               i_assert(io->refcount >= 1);
                io->refcount++;
        }
        for (i = 0; i < ret; i++) {