Fix abort signature on writables

master
Sven Slootweg 3 years ago
parent 30a518a907
commit feb632897b

@ -92,12 +92,12 @@ function fromWritable(stream) {
var writable = wireUpWritableInterface(stream, {
onEnd: () => {
if (!upstreamHasEnded) {
convertedStream.abort(true);
convertedStream.abort(true, mostRecentSource);
}
},
onError: (error) => {
// Make sure we notify the pipeline, if any, by passing in the most recent source stream that we've seen.
convertedStream.abort(mostRecentSource, error);
convertedStream.abort(error, mostRecentSource);
}
});

Loading…
Cancel
Save