summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/services/autorecovery.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index dec1ee8392ba..6d0e06494810 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -2249,6 +2249,7 @@ void AutoRecovery::implts_updateTimer()
{
implts_stopTimer();
+ sal_Int32 nMilliSeconds = 0;
/* SAFE */ {
osl::MutexGuard g(cppu::WeakComponentImplHelperBase::rBHelper.rMutex);
@@ -2258,7 +2259,6 @@ void AutoRecovery::implts_updateTimer()
)
return;
- sal_Int32 nMilliSeconds = 0;
if (m_eTimerType == AutoRecovery::E_NORMAL_AUTOSAVE_INTERVALL)
{
nMilliSeconds = (m_nAutoSaveTimeIntervall*60000); // [min] => 60.000 ms
@@ -2270,15 +2270,16 @@ void AutoRecovery::implts_updateTimer()
else if (m_eTimerType == AutoRecovery::E_POLL_TILL_AUTOSAVE_IS_ALLOWED)
nMilliSeconds = 300; // there is a minimum time frame, where the user can lose some key input data!
+ } /* SAFE */
+
+ SolarMutexGuard g;
m_aTimer.SetTimeout(nMilliSeconds);
m_aTimer.Start();
-
- } /* SAFE */
}
void AutoRecovery::implts_stopTimer()
{
- osl::MutexGuard g(cppu::WeakComponentImplHelperBase::rBHelper.rMutex);
+ SolarMutexGuard g;
if (!m_aTimer.IsActive())
return;