# HG changeset patch # User Timo Sirainen # Date 1300381346 -7200 # Node ID 3d48418b0501fac6a22ff5bf4b5ba4b5a985559b # Parent 02829f7f79c74191e168f28d37d7381c201a075c fts: Don't notify storage about finishing indexing if notify_ok callback is NULL. diff -r 02829f7f79c7 -r 3d48418b0501 src/plugins/fts/fts-storage.c --- a/src/plugins/fts/fts-storage.c Thu Mar 17 16:21:00 2011 +0200 +++ b/src/plugins/fts/fts-storage.c Thu Mar 17 19:02:26 2011 +0200 @@ -546,7 +546,8 @@ } if (ioloop_time - ctx->search_start_time.tv_sec >= - FTS_BUILD_NOTIFY_INTERVAL_SECS) { + FTS_BUILD_NOTIFY_INTERVAL_SECS && + box->storage->callbacks.notify_ok != NULL) { /* we notified at least once */ box->storage->callbacks. notify_ok(box, "Mailbox indexing finished",