From: Timo Sirainen Date: Thu, 17 Mar 2011 17:02:26 +0000 (+0200) Subject: fts: Don't notify storage about finishing indexing if notify_ok callback is NULL. X-Git-Tag: 2.0.12~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4f7d8e459a030149e09656d27ccf7a55c274dbd;p=thirdparty%2Fdovecot%2Fcore.git fts: Don't notify storage about finishing indexing if notify_ok callback is NULL. --- diff --git a/src/plugins/fts/fts-storage.c b/src/plugins/fts/fts-storage.c index f9c8cff0ae..943464df10 100644 --- a/src/plugins/fts/fts-storage.c +++ b/src/plugins/fts/fts-storage.c @@ -546,7 +546,8 @@ static int fts_build_deinit(struct fts_storage_build_context **_ctx) } 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",