Browse Source

Fixes #1304. The Connection instance may be destroyed by abort() when process.nextTick is executed.

v0.7.4-release
Stefan Rusu 14 years ago
committed by koichik
parent
commit
901ebed8ff
  1. 3
      lib/tls.js

3
lib/tls.js

@ -496,7 +496,10 @@ function SecurePair(credentials, isServer, requestCert, rejectUnauthorized) {
this.encrypted = new EncryptedStream(this); this.encrypted = new EncryptedStream(this);
process.nextTick(function() { process.nextTick(function() {
/* The Connection may be destroyed by an abort call */
if (self.ssl) {
self.ssl.start(); self.ssl.start();
}
self.cycle(); self.cycle();
}); });
} }

Loading…
Cancel
Save