Bug 1384300. Stop refresh driver timers after swapping refresh drivers. r=billm

This commit is contained in:
Mason Chang 2017-07-28 15:01:27 -07:00
parent e64f31b735
commit 390704c977

View File

@ -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();
}