Bug 1129877 - Fix one other remaining case of invoking Resolve/Reject directly on a Promise. v1 r=mattwoodrow

This commit is contained in:
Bobby Holley 2015-02-09 18:38:11 -08:00
Родитель 07b1989d7b
Коммит 411d2a22af
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -314,8 +314,7 @@ MediaDecoderReader::Shutdown()
} else {
// If we don't own our task queue, we resolve immediately (though
// asynchronously).
p = new ShutdownPromise(__func__);
p->Resolve(true, __func__);
p = ShutdownPromise::CreateAndResolve(true, __func__);
}
return p;