Skip to content

Commit

Permalink
fix(Ads): Release interstitials timer correctly (#7373)
Browse files Browse the repository at this point in the history
Fixes #7372
  • Loading branch information
avelad committed Sep 25, 2024
1 parent 9c7e95e commit 8cb3628
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ shaka.ads.InterstitialAdManager = class {
if (this.adContainer_) {
shaka.util.Dom.removeAllChildren(this.adContainer_);
}
if (this.pollTimer_) {
this.pollTimer_.stop();
this.pollTimer_ = null;
}
this.player_.destroy();
}

Expand Down

0 comments on commit 8cb3628

Please sign in to comment.