mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Prevent firing _onStreamProgress after aborting
This commit is contained in:
parent
6a6cf015a6
commit
cc6d6ddd66
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ var SSE = function (url, options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this._onStreamProgress = function(e) {
|
this._onStreamProgress = function(e) {
|
||||||
if (this.xhr.status !== 200) {
|
if (this.xhr.status !== 200 && this.readyState !== this.CLOSED) {
|
||||||
this._onStreamFailure(e);
|
this._onStreamFailure(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue