Kaydet (Commit) 032e251f authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Caolán McNamara

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/17194Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 58d68a1b
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment