Abort XHR properly in setCurrentTime
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment