mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-17 16:26:39 +03:00
ea90fbdf66
Previously, if the ad manager was shut down before the client side ad manager finished setting up (most commonly due to adblock preventing the ads metadata from being loaded), it would result in an error. The client side ad manager assumed that the IMA ad manager would have been loaded before unloading, and didn't check to see if the object was null. This prevents that error, by checking if the object is set before stopping it. Change-Id: Ic9e9b206bcd62641c0c2c6257b3eaacb6246e9df