Skip to content

Commit

Permalink
Fixed the issue that the socket is closed too early (kylefarris#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihui committed Jul 16, 2024
1 parent adc8bdb commit 6082e34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2256,6 +2256,7 @@ class NodeClam {
// The transform stream has dried up
.on('end', () => {
if (this.settings.debugMode) console.log(`${this.debugLabel}: The transform stream has ended.`);
transform.end();
})
.on('error', err => {
console.error(`${this.debugLabel}: Error emitted from transform stream: `, err);
Expand Down

0 comments on commit 6082e34

Please sign in to comment.