From: Timo Sirainen Date: Sat, 19 Jun 2004 20:07:51 +0000 (+0300) Subject: fix for fix X-Git-Tag: 1.1.alpha1~3927 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64459307547aaa9d17e440e18d92fbf0497d4597;p=thirdparty%2Fdovecot%2Fcore.git fix for fix --HG-- branch : HEAD --- diff --git a/src/lib/ioloop.c b/src/lib/ioloop.c index c822579fc0..e33c90513b 100644 --- a/src/lib/ioloop.c +++ b/src/lib/ioloop.c @@ -82,11 +82,12 @@ void io_remove(struct io *io) io_loop_handle_remove(current_ioloop, io->fd, io->condition); io->destroyed = TRUE; - io->fd = -1; /* check if we removed the highest fd */ if (io->fd == current_ioloop->highest_fd) update_highest_fd(current_ioloop); + + io->fd = -1; } void io_destroy(struct ioloop *ioloop, struct io **io_p)