Prevent firing _onStreamProgress after aborting

このコミットが含まれているのは:
Omar Roth 2019-06-22 20:08:11 -05:00
コミット cc6d6ddd66
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B8254FB7EC3D37F2
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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;
}