Bug 1304948 - Part 2: Don't run TimeMarchesOn when shutdown. r=rillian

MozReview-Commit-ID: AE6FE74ESHN

--HG--
extra : rebase_source : c6bd95af29d063c237e07c3fbdefb0daf76874f1
This commit is contained in:
bechen 2016-09-29 17:47:33 +08:00
parent 1d54633f83
commit 9a94b5158f

View File

@ -589,8 +589,8 @@ TextTrackManager::TimeMarchesOn()
WEBVTT_LOG("TimeMarchesOn");
mTimeMarchesOnDispatched = false;
// Early return if we don't have any TextTracks.
if (!mTextTracks || mTextTracks->Length() == 0) {
// Early return if we don't have any TextTracks or shutting down.
if (!mTextTracks || mTextTracks->Length() == 0 || mShutdown) {
return;
}