mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Add CryptoStream.destroy()
This commit is contained in:
1 parent
953561ab06
commit
66767edf12
1 file changed
+6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user