mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1139469 - Guard against a null compositor loop during startup on B2G. r=botond
This commit is contained in:
parent
5fb347354a
commit
a89786d06f
@ -56,6 +56,12 @@ APZThreadUtils::RunOnControllerThread(Task* aTask)
|
||||
// On B2G the controller thread is the compositor thread, and this function
|
||||
// is always called from the libui thread or the main thread.
|
||||
MessageLoop* loop = CompositorParent::CompositorLoop();
|
||||
if (!loop) {
|
||||
// Could happen on startup
|
||||
NS_WARNING("Dropping task posted to controller thread\n");
|
||||
delete aTask;
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(MessageLoop::current() != loop);
|
||||
loop->PostTask(FROM_HERE, aTask);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user