mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1523577 - Make sure we don't initialize tickler on child processes r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108267
This commit is contained in:
parent
e64d2125e2
commit
6d75d587c0
@ -46,6 +46,10 @@ Tickler::~Tickler() {
|
||||
}
|
||||
|
||||
nsresult Tickler::Init() {
|
||||
if (!XRE_IsParentProcess()) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(!mTimer);
|
||||
MOZ_ASSERT(!mActive);
|
||||
|
Loading…
Reference in New Issue
Block a user