Browse Source

CryptoStream.prototype.destroySoon shouldn't die if not writable

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

6
lib/tls.js

@ -170,7 +170,11 @@ CryptoStream.prototype.end = function(d) {
CryptoStream.prototype.destroySoon = function(err) {
return this.end();
if (this.writable) {
this.end();
} else {
this.destroy();
}
};

Loading…
Cancel
Save