progress-stream: handle destroy
This commit is contained in:
@@ -44,6 +44,11 @@ class ProgressStream extends TransformStream {
|
||||
this._stop();
|
||||
callback(null);
|
||||
}
|
||||
|
||||
_destroy(error, callback) {
|
||||
this._stop();
|
||||
callback(error);
|
||||
}
|
||||
}
|
||||
|
||||
exports = module.exports = ProgressStream;
|
||||
|
||||
Reference in New Issue
Block a user