Skip to content

Commit 25e9bca

Browse files
committed
Unlock input reader after transforming stream
1 parent 1e45ae0 commit 25e9bca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/streams.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ function transform(input, process = () => undefined, finish = () => undefined) {
252252
async pull(controller) {
253253
if (allDone) {
254254
controller.close();
255+
input.releaseLock();
255256
return;
256257
}
257258
try {
@@ -265,6 +266,7 @@ function transform(input, process = () => undefined, finish = () => undefined) {
265266
}
266267
if (done) {
267268
controller.close();
269+
input.releaseLock();
268270
return;
269271
}
270272
}

0 commit comments

Comments
 (0)