changeset 2178:39f55e074619 HEAD

io_remove() fix
author Timo Sirainen <tss@iki.fi>
date Sat, 19 Jun 2004 23:06:55 +0300
parents 84ffac0d1c04
children 7b104f7e16c4
files src/lib/ioloop.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/ioloop.c	Sat Jun 19 22:55:15 2004 +0300
+++ b/src/lib/ioloop.c	Sat Jun 19 23:06:55 2004 +0300
@@ -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)