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

MozReview-Commit-ID: AE6FE74ESHN
This commit is contained in:
bechen
2016-09-29 17:47:33 +08:00
parent dc6b0c5265
commit f68820a82c

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;
}