[dovecot-cvs] dovecot/src/lib ioloop.c,1.20,1.21

cras at procontrol.fi cras at procontrol.fi
Sat Jun 19 23:06:57 EEST 2004


Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv10833

Modified Files:
	ioloop.c 
Log Message:
io_remove() fix



Index: ioloop.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ioloop.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- ioloop.c	26 Aug 2003 21:18:16 -0000	1.20
+++ ioloop.c	19 Jun 2004 20:06:55 -0000	1.21
@@ -81,12 +81,12 @@
 	/* notify the real I/O handler */
 	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->destroyed = TRUE;
-	io->fd = -1;
 }
 
 void io_destroy(struct ioloop *ioloop, struct io **io_p)



More information about the dovecot-cvs mailing list