From 7635a5eefdca16d40c4d78cfe9e102cacec96977 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 20 May 2024 14:03:51 +0100 Subject: [PATCH] lok: joinThreads - take down configmgr's write-thread. Change-Id: I1f9b6b88ef7e97da02fecf2035f953584cd28c16 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170674 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- desktop/source/lib/init.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 48b771c9f7f3..7d4b9d5041f6 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -106,6 +106,8 @@ #include #include #include +#include +#include #include #include #include @@ -3441,6 +3443,12 @@ static int lo_joinThreads(LibreOfficeKit* /* pThis */) if (joinable && !joinable->joinThreads()) return 0; + // Ensure configmgr's write thread is down + css::uno::Reference< css::util::XFlushable >( + css::configuration::theDefaultProvider::get( + comphelper::getProcessComponentContext()), + css::uno::UNO_QUERY_THROW)->flush(); + return 1; }