From c880d3e30405342a5ae6239cc77f69ed3ca6cc15 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 13 Mar 2021 09:36:46 +0200 Subject: check for quit when calling Yield in loop so we don't get stuck threads when the main application quits Change-Id: Id36e99267ceb4154873b6ef8ef494622fff6c19a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112409 Tested-by: Jenkins Reviewed-by: Michael Meeks --- fpicker/source/win32/asyncrequests.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpicker') diff --git a/fpicker/source/win32/asyncrequests.cxx b/fpicker/source/win32/asyncrequests.cxx index 86b71cf51540..bfecc42125a3 100644 --- a/fpicker/source/win32/asyncrequests.cxx +++ b/fpicker/source/win32/asyncrequests.cxx @@ -50,7 +50,7 @@ void Request::wait( ::sal_Int32 nMilliSeconds ) void Request::waitProcessMessages() { SolarMutexGuard aGuard; - while ( !m_aJoiner.check() ) + while ( !m_aJoiner.check() && !Application::IsQuit()) Application::Yield(); } -- cgit