]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Added assert check to make sure we never do timeout_add(0)
authorTimo Sirainen <tss@iki.fi>
Thu, 9 Dec 2010 11:16:24 +0000 (11:16 +0000)
committerTimo Sirainen <tss@iki.fi>
Thu, 9 Dec 2010 11:16:24 +0000 (11:16 +0000)
src/lib-storage/index/index-mailbox-check.c

index 8c50d6b3d1447ae3f684f005c61f4dc39bceb581..948de7ab1e79556462d5448c6ec5b882f82154e6 100644 (file)
@@ -72,6 +72,8 @@ void index_mailbox_check_add(struct mailbox *box, const char *path)
        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);