destroy input stream on error
This commit is contained in:
+4
-1
@@ -632,7 +632,10 @@ function tarExtract(inStream, dataLayout, encryption, callback) {
|
||||
}
|
||||
});
|
||||
|
||||
const emitError = once((error) => ps.emit('error', error));
|
||||
const emitError = once((error) => {
|
||||
inStream.destroy();
|
||||
ps.emit('error', error);
|
||||
});
|
||||
|
||||
inStream.on('error', function (error) {
|
||||
debug('tarExtract: input stream error.', error);
|
||||
|
||||
Reference in New Issue
Block a user