[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser] 09/73: Bug 1779036 - Account for the fact that the ended promise might already have been resolved in GetPosition, during shutdown. r=ng, a=RyanVM



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@xxxxxxx>
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;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits