Skip to content

Commit

Permalink
fix: stream end after write in a file push (#2409)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jun 12, 2024
1 parent 805c29a commit b2f57b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ios-fs-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export async function pushFile (afcService, localPathOrPayload, remotePath, opts
});
if (Buffer.isBuffer(source)) {
writeStream.write(source);
writeStream.end();
} else {
source.pipe(writeStream);
}
Expand Down

0 comments on commit b2f57b7

Please sign in to comment.