0
0
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:
Ryan Dahl 2010-12-11 01:21:25 -08:00
parent 953561ab06
commit 66767edf12

View File

@ -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);
}