summaryrefslogtreecommitdiff
path: root/framework/source/services/desktop.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/services/desktop.cxx')
-rw-r--r--framework/source/services/desktop.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx
index 7c3823e09f06..964ca410945f 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -1068,18 +1068,18 @@ void SAL_CALL Desktop::disposing()
// tests for instance in sc/qa/unit) nothing bad happens.
SAL_WARN_IF( !m_bIsTerminated, "fwk.desktop", "Desktop disposed before terminating it" );
- SolarMutexClearableGuard aWriteLock;
-
{
- TransactionGuard aTransaction( m_aTransactionManager, E_HARDEXCEPTIONS );
- }
+ SolarMutexGuard aWriteLock;
- // Disable this instance for further work.
- // This will wait for all current running transactions ...
- // and reject all new incoming requests!
- m_aTransactionManager.setWorkingMode( E_BEFORECLOSE );
+ {
+ TransactionGuard aTransaction(m_aTransactionManager, E_HARDEXCEPTIONS);
+ }
- aWriteLock.clear();
+ // Disable this instance for further work.
+ // This will wait for all current running transactions ...
+ // and reject all new incoming requests!
+ m_aTransactionManager.setWorkingMode(E_BEFORECLOSE);
+ }
// Following lines of code can be called outside a synchronized block ...
// Because our transaction manager will block all new requests to this object.