Fixes #1304. The Connection instance may be destroyed by abort() when process.nextTick is executed.
This commit is contained in:
parent
7097eca5a7
commit
901ebed8ff
@ -496,7 +496,10 @@ function SecurePair(credentials, isServer, requestCert, rejectUnauthorized) {
|
||||
this.encrypted = new EncryptedStream(this);
|
||||
|
||||
process.nextTick(function() {
|
||||
self.ssl.start();
|
||||
/* The Connection may be destroyed by an abort call */
|
||||
if (self.ssl) {
|
||||
self.ssl.start();
|
||||
}
|
||||
self.cycle();
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user