# HG changeset patch # User Timo Sirainen # Date 1160347313 -10800 # Node ID 67c06740963434a984b6374b9e3536b3a8667ca2 # Parent f5772851ac91d7f6b4f127741e910d3c5e66c977 Fix diff -r f5772851ac91 -r 67c067409634 src/master/log.c --- 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)