]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fix for fix
authorTimo Sirainen <tss@iki.fi>
Sat, 19 Jun 2004 20:07:51 +0000 (23:07 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 19 Jun 2004 20:07:51 +0000 (23:07 +0300)
--HG--
branch : HEAD

src/lib/ioloop.c

index c822579fc06d092cb065d7ab7a17dfc218f4b509..e33c90513b431bbab7508bb691dcdfab072790f0 100644 (file)
@@ -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)