diff --git a/lib/abr/simple_abr_manager.js b/lib/abr/simple_abr_manager.js index 304d11eec2..0b5a885ffc 100644 --- a/lib/abr/simple_abr_manager.js +++ b/lib/abr/simple_abr_manager.js @@ -54,7 +54,7 @@ shaka.abr.SimpleAbrManager = class { // of connectivity changes. if (navigator.connection && navigator.connection.addEventListener) { this.onNetworkInformationChange_ = () => { - if (this.config_.useNetworkInformation && this.enabled_) { + if (this.enabled_ && this.config_.useNetworkInformation) { this.bandwidthEstimator_ = new shaka.abr.EwmaBandwidthEstimator(); if (this.config_) { this.bandwidthEstimator_.configure(this.config_.advanced);