mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1384300. Stop refresh driver timers after swapping refresh drivers. r=billm
This commit is contained in:
parent
e64f31b735
commit
390704c977
@ -227,6 +227,8 @@ public:
|
||||
|
||||
aNewTimer->mLastFireEpoch = mLastFireEpoch;
|
||||
aNewTimer->mLastFireTime = mLastFireTime;
|
||||
|
||||
StopTimer();
|
||||
}
|
||||
|
||||
virtual TimeDuration GetTimerRate() = 0;
|
||||
@ -365,7 +367,7 @@ public:
|
||||
mTimer = do_CreateInstance(NS_TIMER_CONTRACTID);
|
||||
}
|
||||
|
||||
~SimpleTimerBasedRefreshDriverTimer() override
|
||||
virtual ~SimpleTimerBasedRefreshDriverTimer() override
|
||||
{
|
||||
StopTimer();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user