mirror of
https://github.com/lovell/sharp.git
synced 2025-07-13 04:20:12 +02:00
Ensure close event occurs after end event #3313
This commit is contained in:
parent
32aa3b4b20
commit
70e6bb0162
@ -6,6 +6,9 @@ Requires libvips v8.13.1
|
|||||||
|
|
||||||
### v0.31.1 - TBD
|
### v0.31.1 - TBD
|
||||||
|
|
||||||
|
* Ensure `close` event occurs after `end` event for Stream-based output.
|
||||||
|
[#3313](https://github.com/lovell/sharp/issues/3313)
|
||||||
|
|
||||||
* Ensure `limitInputPixels` constructor option uses uint64.
|
* Ensure `limitInputPixels` constructor option uses uint64.
|
||||||
[#3349](https://github.com/lovell/sharp/pull/3349)
|
[#3349](https://github.com/lovell/sharp/pull/3349)
|
||||||
[@marcosc90](https://github.com/marcosc90)
|
[@marcosc90](https://github.com/marcosc90)
|
||||||
|
@ -1205,7 +1205,7 @@ function _pipeline (callback) {
|
|||||||
this.push(data);
|
this.push(data);
|
||||||
}
|
}
|
||||||
this.push(null);
|
this.push(null);
|
||||||
this.emit('close');
|
this.on('end', () => this.emit('close'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
if (this.streamInFinished) {
|
if (this.streamInFinished) {
|
||||||
@ -1221,7 +1221,7 @@ function _pipeline (callback) {
|
|||||||
this.push(data);
|
this.push(data);
|
||||||
}
|
}
|
||||||
this.push(null);
|
this.push(null);
|
||||||
this.emit('close');
|
this.on('end', () => this.emit('close'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user