[dovecot-cvs] dovecot/src/master log.c,1.8,1.9

tss at dovecot.org tss at dovecot.org
Sun Oct 8 23:41:57 UTC 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv31101

Modified Files:
	log.c 
Log Message:
Fix



Index: log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/log.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- log.c	17 Jun 2006 12:25:08 -0000	1.8
+++ log.c	8 Oct 2006 22:41:53 -0000	1.9
@@ -58,12 +58,16 @@
 		       FALSE);
 	}
 
-	if (log_io->io != NULL)
-		io_remove(&log_io->io);
+	if (log_io->io == NULL) {
+		i_assert(to != NULL);
+		return;
+	}
+
+	io_remove(&log_io->io);
+        throttle_count++;
 
 	if (to == NULL)
 		to = timeout_add(1000, log_throttle_timeout, NULL);
-        throttle_count++;
 }
 
 static void log_unthrottle(struct log_io *log_io)



More information about the dovecot-cvs mailing list