mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
Add CryptoStream.destroy()
This commit is contained in:
parent
953561ab06
commit
66767edf12
@ -87,6 +87,12 @@ CryptoStream.prototype.end = function(d) {
|
||||
};
|
||||
|
||||
|
||||
CryptoStream.prototype.destroy = function(err) {
|
||||
if (this.pair._done) return;
|
||||
this.pair._destroy();
|
||||
};
|
||||
|
||||
|
||||
function CleartextStream (pair) {
|
||||
CryptoStream.call(this, pair);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user