fix(VirtualStream): Fix stream closure logic in method

This commit is contained in:
2024-10-16 10:09:59 +02:00
parent dcf014bf95
commit c08a501fa5
3 changed files with 7 additions and 1 deletions

View File

@@ -404,6 +404,7 @@ export class VirtualStream<T = Uint8Array> implements plugins.typedRequestInterf
while(this.keepAlive || this.receiveBackpressuredArray.checkHasItems()) {
const value = await this.fetchData();
if (value === closingBit) {
writer.releaseLock();
await writableStreamArg.close();
break;
}