Skip to content

Commit

Permalink
Bug 1879880 - Forget the request when disconnecting. r=nika
Browse files Browse the repository at this point in the history
  • Loading branch information
padenot committed Feb 27, 2024
1 parent c866ed7 commit 310014c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpcom/threads/MozPromise.h
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,8 @@ class MozPromiseRequestHolder {
// will never be called.
void Disconnect() {
MOZ_ASSERT(Exists());
mRequest->Disconnect();
mRequest = nullptr;
RefPtr request = std::move(mRequest);
request->Disconnect();
}

void DisconnectIfExists() {
Expand Down

0 comments on commit 310014c

Please sign in to comment.