зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1366147 - SetTarget() should be called once only after the timer is created. r=billm
MozReview-Commit-ID: 9kmxzZX8Zfc --HG-- extra : rebase_source : d486637b7fe74dbb0544b63abf89bf3f9c4c8d3d
This commit is contained in:
Родитель
f36da07def
Коммит
b29d73b45c
|
@ -81,9 +81,11 @@ DoArmIPCTimerMainThread(const StaticMutexAutoLock& lock)
|
|||
}
|
||||
if (!gIPCTimer) {
|
||||
CallCreateInstance(NS_TIMER_CONTRACTID, &gIPCTimer);
|
||||
if (gIPCTimer) {
|
||||
gIPCTimer->SetTarget(SystemGroup::EventTargetFor(TaskCategory::Other));
|
||||
}
|
||||
}
|
||||
if (gIPCTimer) {
|
||||
gIPCTimer->SetTarget(SystemGroup::EventTargetFor(TaskCategory::Other));
|
||||
gIPCTimer->InitWithNamedFuncCallback(TelemetryIPCAccumulator::IPCTimerFired,
|
||||
nullptr, kBatchTimeoutMs,
|
||||
nsITimer::TYPE_ONE_SHOT,
|
||||
|
|
Загрузка…
Ссылка в новой задаче