forked from midou/invidious
		
	Prevent firing _onStreamProgress after aborting
This commit is contained in:
		@@ -94,7 +94,7 @@ var SSE = function (url, options) {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  this._onStreamProgress = function(e) {
 | 
			
		||||
    if (this.xhr.status !== 200) {
 | 
			
		||||
    if (this.xhr.status !== 200 && this.readyState !== this.CLOSED) {
 | 
			
		||||
      this._onStreamFailure(e);
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user