vcl/source/app/session.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e0937872b206bc383f9b1ac44a42141788a1e006
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Oct 14 08:49:07 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Oct 14 17:51:41 2025 +0200

    cid#1667093 Data race condition
    
    move SAL_INFO inside mutex guard
    
    Change-Id: I09ecfc293e538dcae24b02055a2c8bf6a48652b2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192371
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/source/app/session.cxx b/vcl/source/app/session.cxx
index 7fa5d7b98287..1642e3912aaa 100644
--- a/vcl/source/app/session.cxx
+++ b/vcl/source/app/session.cxx
@@ -291,11 +291,11 @@ void SAL_CALL VCLSession::queryInteraction( const 
css::uno::Reference<XSessionMa
 {
     SAL_INFO("vcl.se", "VCLSession::queryInteraction");
 
+    std::unique_lock aGuard( m_aMutex );
+
     SAL_INFO("vcl.se.debug", "  m_bInteractionGranted = " << 
(m_bInteractionGranted ? "true" : "false") <<
                              ", m_bInteractionRequested = "<< 
(m_bInteractionRequested ? "true" : "false"));
 
-    std::unique_lock aGuard( m_aMutex );
-
     if( m_bInteractionGranted )
     {
         bool bInteractionDone = m_bInteractionDone;

Reply via email to