projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7097eca
)
Fixes #1304. The Connection instance may be destroyed by abort() when process.nextTic...
author
Stefan Rusu
<saltwaterc@gmail.com>
Thu, 14 Jul 2011 09:52:43 +0000
(12:52 +0300)
committer
koichik
<koichik@improvement.jp>
Thu, 14 Jul 2011 15:32:46 +0000
(
00:32
+0900)
lib/tls.js
patch
|
blob
|
history
diff --git
a/lib/tls.js
b/lib/tls.js
index
291c31c
..
f5bb333
100644
(file)
--- a/
lib/tls.js
+++ b/
lib/tls.js
@@
-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();
});
}