mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1207312: P1. Prevent crash when more than one promise is rejected. r=bholley
This commit is contained in:
parent
fa1c3b9ee9
commit
5f26c3d862
@ -237,6 +237,11 @@ private:
|
||||
|
||||
void Reject(const RejectValueType& aRejectValue)
|
||||
{
|
||||
if (!mPromise) {
|
||||
// Already rejected.
|
||||
return;
|
||||
}
|
||||
|
||||
mPromise->Reject(aRejectValue, __func__);
|
||||
mPromise = nullptr;
|
||||
mResolveValues.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user