forked from mirrors/gecko-dev
Bug 1367150 - Do not attempt to create PresentationChild if ContentChild is shutting down. r=ehsan
This commit is contained in:
parent
87d56c60b3
commit
aa39ee6f8c
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ NS_IMPL_ISUPPORTS(PresentationIPCService,
|
||||||
PresentationIPCService::PresentationIPCService()
|
PresentationIPCService::PresentationIPCService()
|
||||||
{
|
{
|
||||||
ContentChild* contentChild = ContentChild::GetSingleton();
|
ContentChild* contentChild = ContentChild::GetSingleton();
|
||||||
if (NS_WARN_IF(!contentChild)) {
|
if (NS_WARN_IF(!contentChild || contentChild->IsShuttingDown())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sPresentationChild = new PresentationChild(this);
|
sPresentationChild = new PresentationChild(this);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue