[dovecot-cvs] dovecot/src/master log.c,1.7.2.1,1.7.2.2
tss at dovecot.org
tss at dovecot.org
Sun Oct 8 23:41:54 UTC 2006
Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv31107
Modified Files:
Tag: branch_1_0
log.c
Log Message:
Fix
Index: log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/log.c,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -d -r1.7.2.1 -r1.7.2.2
--- log.c 17 Jun 2006 12:24:31 -0000 1.7.2.1
+++ log.c 8 Oct 2006 22:41:52 -0000 1.7.2.2
@@ -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