Skip to content

Commit

Permalink
fix(ads): Dispose of ad manager on player detach
Browse files Browse the repository at this point in the history
Change-Id: Ie4cd186885349ecb9081f16e82790295113668c2
  • Loading branch information
theodab authored and tecteun committed Feb 10, 2022
1 parent 9434469 commit 0cc6aa0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ads/server_side_ad_manager.js
Expand Up @@ -226,6 +226,14 @@ shaka.ads.ServerSideAdManager = class {
}
}

/** @override */
release() {
this.stop();
if (this.eventManager_) {
this.eventManager_.release();
}
}

/**
* @param {string} type
* @param {Uint8Array|string} data
Expand Down

0 comments on commit 0cc6aa0

Please sign in to comment.