Permalink
Browse files

tls: fix test-https-client-reject fails

  • Loading branch information...
1 parent e6b6075 commit 68f16c025b1e7bcf40c96fb69b1a6a36277f1412 @koichik committed Dec 26, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/tls.js
View
6 lib/tls.js
@@ -719,10 +719,10 @@ SecurePair.prototype.maybeInitFinished = function() {
SecurePair.prototype.destroy = function() {
- var self = this;
- var error = this.ssl.error;
-
if (!this._doneFlag) {
+ var self = this;
+ var error = this.ssl.error;
+
this._doneFlag = true;
this.ssl.error = null;
this.ssl.close();

0 comments on commit 68f16c0

Please sign in to comment.