summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashodnakashian@yahoo.com>2015-07-19 13:33:11 -0400
committerCaolán McNamara <caolanm@redhat.com>2015-08-18 19:43:50 +0000
commit032e251f0fb80bb2400804d13a2a954cdaedf605 (patch)
tree22b9fc9add7e592588d40a2c49a8f9e0f30c14a7
parent58d68a1bc9146334376206ae7ba8b1a6594a1040 (diff)
tdf#92036 - Writer infinite spelling loop
The periodic timers fire when the current time exceeds the start time + the period. However, without reseting the start time, the timer would end up thinking it must fire immediatly. By reseting the start time when firing, the timer will only fire again when another period has expired, not immediatly. Change-Id: Ibd0311b12a514bfd558c0bd6ef83df8c89fd8c7e Reviewed-on: https://gerrit.libreoffice.org/17194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/app/scheduler.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx
index c3cea781e6b8..4cbeeb9c73f9 100644
--- a/vcl/source/app/scheduler.cxx
+++ b/vcl/source/app/scheduler.cxx
@@ -33,6 +33,9 @@ void ImplSchedulerData::Invoke()
// prepare Scheduler Object for deletion after handling
mpScheduler->SetDeletionFlags();
+ // tdf#92036 Reset the period to avoid re-firing immediately.
+ mpScheduler->mpSchedulerData->mnUpdateTime = tools::Time::GetSystemTicks();
+
// invoke it
mbInScheduler = true;
mpScheduler->Invoke();