summaryrefslogtreecommitdiffstats
path: root/gfx/vr/ipc/VRManagerParent.cpp
diff options
context:
space:
mode:
authorCarsten Schoenert <c.schoenert@t-online.de>2019-05-22 20:42:44 +0200
committerCarsten Schoenert <c.schoenert@t-online.de>2019-05-22 20:42:44 +0200
commitf6dd130b8be04b7a49d04920386bef9da321ab72 (patch)
tree2acc6ef89d0753d535e8643bc3b0ca17d9c74a91 /gfx/vr/ipc/VRManagerParent.cpp
parent407d18c607a2540f5d9c4a086d7bec336f99b5a7 (diff)
New upstream version 60.7.0upstream/60.7.0
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>&&>(