progress-stream: handle destroy

This commit is contained in:
Girish Ramakrishnan
2025-07-14 16:20:11 +02:00
parent 6f653a603b
commit 11e9f0eaf2
+5
View File
@@ -44,6 +44,11 @@ class ProgressStream extends TransformStream {
this._stop();
callback(null);
}
_destroy(error, callback) {
this._stop();
callback(error);
}
}
exports = module.exports = ProgressStream;