Mercurial > dovecot > core-2.2
changeset 4641:67c067409634 HEAD
Fix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 09 Oct 2006 01:41:53 +0300 |
parents | f5772851ac91 |
children | 0448f2fa8349 |
files | src/master/log.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/log.c Mon Oct 09 00:46:25 2006 +0300 +++ b/src/master/log.c Mon Oct 09 01:41:53 2006 +0300 @@ -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)