diff --git a/src/progress-stream.js b/src/progress-stream.js index 8593aa14a..3440eb148 100644 --- a/src/progress-stream.js +++ b/src/progress-stream.js @@ -44,6 +44,11 @@ class ProgressStream extends TransformStream { this._stop(); callback(null); } + + _destroy(error, callback) { + this._stop(); + callback(error); + } } exports = module.exports = ProgressStream;