changeset 12898:3d48418b0501

fts: Don't notify storage about finishing indexing if notify_ok callback is NULL.
author Timo Sirainen <tss@iki.fi>
date Thu, 17 Mar 2011 19:02:26 +0200
parents 02829f7f79c7
children 31b3f1819c89
files src/plugins/fts/fts-storage.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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",