b5498ea1 by Ryo Chikazawa Committed by Gary Katsevman

Abort XHR properly in setCurrentTime

1 parent c9bfe153
...@@ -188,7 +188,9 @@ videojs.Hls.prototype.setCurrentTime = function(currentTime) { ...@@ -188,7 +188,9 @@ videojs.Hls.prototype.setCurrentTime = function(currentTime) {
188 188
189 // cancel outstanding requests and buffer appends 189 // cancel outstanding requests and buffer appends
190 if (this.segmentXhr_) { 190 if (this.segmentXhr_) {
191 this.segmentXhr_.onreadystatechange = null;
191 this.segmentXhr_.abort(); 192 this.segmentXhr_.abort();
193 this.segmentXhr_ = null;
192 } 194 }
193 195
194 // fetch new encryption keys, if necessary 196 // fetch new encryption keys, if necessary
......