зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1129877 - Fix one other remaining case of invoking Resolve/Reject directly on a Promise. v1 r=mattwoodrow
This commit is contained in:
Родитель
07b1989d7b
Коммит
411d2a22af
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче