mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Properly emit close events for duplex streams (#2976)
This commit is contained in:
@@ -1078,6 +1078,7 @@ function _pipeline (callback) {
|
||||
this.push(data);
|
||||
}
|
||||
this.push(null);
|
||||
this.emit('close');
|
||||
});
|
||||
});
|
||||
if (this.streamInFinished) {
|
||||
@@ -1093,6 +1094,7 @@ function _pipeline (callback) {
|
||||
this.push(data);
|
||||
}
|
||||
this.push(null);
|
||||
this.emit('close');
|
||||
});
|
||||
}
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user