Fix UI process not properly waiting for the GPU process to finish launching. (bug 1314127, r=rhunt)

This commit is contained in:
David Anderson 2016-10-31 16:03:41 -07:00
Родитель e7c126d7a0
Коммит 223ed063da
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -148,7 +148,7 @@ GPUProcessManager::DisableGPUProcess(const char* aMessage)
void
GPUProcessManager::EnsureGPUReady()
{
if (mProcess && mProcess->IsConnected()) {
if (mProcess && !mProcess->IsConnected()) {
if (!mProcess->WaitForLaunch()) {
// If this fails, we should have fired OnProcessLaunchComplete and
// removed the process.