Skip to content

Commit b87bfb9

Browse files
committed
fix: minor fix to processStreams logic
1 parent 22a293b commit b87bfb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/QUICConnection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,9 +1031,6 @@ class QUICConnection {
10311031
}
10321032
try {
10331033
this.conn.streamSend(streamId, Buffer.alloc(0), false);
1034-
utils.never(
1035-
'We never expect the stream to be writable if it was created during the writable iterator',
1036-
);
10371034
} catch (e) {
10381035
// If we got `FinalSize` during the writable iterator then we cleaned up an errant stream
10391036
if (e.message === 'FinalSize') continue;
@@ -1070,6 +1067,9 @@ class QUICConnection {
10701067
}
10711068
utils.never(`Expected to throw "FinalSize", got ${e.message}`);
10721069
}
1070+
utils.never(
1071+
'We never expect the stream to be writable if it was created during the writable iterator',
1072+
);
10731073
}
10741074
quicStream.write();
10751075
}

0 commit comments

Comments
 (0)