There was an error while loading. Please reload this page.
1 parent ad67159 commit 1dd1025Copy full SHA for 1dd1025
1 file changed
lib/internal/quic/quic.js
@@ -962,9 +962,10 @@ setCallbacks({
962
// Called when the stream C++ handle has been closed. The error is
963
// either undefined (clean close) or a raw array [type, code, reason]
964
// from QuicError::ToV8Value. Convert to a proper Node.js Error.
965
+ if (!this[kOwner]) return;
966
if (error !== undefined) {
967
error = convertQuicError(error);
- } else if (this[kOwner] && !this[kOwner].destroyed) {
968
+ } else if (!this[kOwner].destroyed) {
969
// The stream is closing cleanly, but it may have been reset by the
970
// peer (ReceiveStreamReset) or locally (resetStream). The C++ side
971
// records the reset code in state.resetCode. If set, surface the
0 commit comments