diff --git a/lib/protocol/stream.js b/lib/protocol/stream.js index b8c3cc4..6d029dc 100644 --- a/lib/protocol/stream.js +++ b/lib/protocol/stream.js @@ -567,6 +567,7 @@ Stream.prototype._transition = function transition(sending, frame) { // can be used to close any of those streams. case 'CLOSED': if (PRIORITY || (sending && RST_STREAM) || + (sending && this._closedWithRst) || (receiving && WINDOW_UPDATE) || (receiving && this._closedByUs && (this._closedWithRst || RST_STREAM || ALTSVC))) {