summaryrefslogtreecommitdiffstats
path: root/gfx/vr/ipc/VRManagerParent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/vr/ipc/VRManagerParent.cpp')
-rw-r--r--gfx/vr/ipc/VRManagerParent.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/vr/ipc/VRManagerParent.cpp b/gfx/vr/ipc/VRManagerParent.cpp
index e848484..deb25cd 100644
--- a/gfx/vr/ipc/VRManagerParent.cpp
+++ b/gfx/vr/ipc/VRManagerParent.cpp
@@ -73,6 +73,9 @@ void VRManagerParent::UnregisterFromManager() {
/* static */ bool VRManagerParent::CreateForContent(
Endpoint<PVRManagerParent>&& aEndpoint) {
MessageLoop* loop = VRListenerThreadHolder::Loop();
+ if (!loop) {
+ return false;
+ }
RefPtr<VRManagerParent> vmp = new VRManagerParent(aEndpoint.OtherPid(), true);
loop->PostTask(NewRunnableMethod<Endpoint<PVRManagerParent>&&>(