This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch geckoview-102.3.0esr-12.0-1 in repository tor-browser.
commit 0f122e8c34be4dd103b88f7e69150e522f64290c Author: Paul Adenot paul@paul.cx AuthorDate: Tue Jul 19 15:10:26 2022 +0000
Bug 1779036 - Account for the fact that the ended promise might already have been resolved in GetPosition, during shutdown. r=ng, a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D151592 --- dom/media/mediasink/AudioSinkWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dom/media/mediasink/AudioSinkWrapper.cpp b/dom/media/mediasink/AudioSinkWrapper.cpp index 791c184de09a5..05fd2464ec2a2 100644 --- a/dom/media/mediasink/AudioSinkWrapper.cpp +++ b/dom/media/mediasink/AudioSinkWrapper.cpp @@ -107,7 +107,7 @@ TimeUnit AudioSinkWrapper::GetPosition(TimeStamp* aTimeStamp) { // ended promise. if (CheckIfEnded()) { MOZ_ASSERT(!mAudioSink); - mEndedPromiseHolder.Resolve(true, __func__); + mEndedPromiseHolder.ResolveIfExists(true, __func__); } } mLastClockSource = ClockSource::SystemClock;