Mercurial > dovecot > core-2.2
changeset 12560:694ef2d76d51
lib-storage: Added assert check to make sure we never do timeout_add(0)
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 09 Dec 2010 11:16:24 +0000 |
parents | 7353e3253840 |
children | e030df616faf |
files | src/lib-storage/index/index-mailbox-check.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mailbox-check.c Wed Dec 08 23:17:11 2010 +0000 +++ b/src/lib-storage/index/index-mailbox-check.c Thu Dec 09 11:16:24 2010 +0000 @@ -72,6 +72,8 @@ struct io *io = NULL; struct index_notify_io *aio; + i_assert(box->notify_min_interval > 0); + (void)io_add_notify(path, notify_callback, box, &io); if (io != NULL) { aio = i_new(struct index_notify_io, 1);