Browse Source

Add CryptoStream.destroy()

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
66767edf12
  1. 6
      lib/tls.js

6
lib/tls.js

@ -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…
Cancel
Save