summaryrefslogtreecommitdiff
path: root/lib/tls.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tls.js')
-rw-r--r--lib/tls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tls.js b/lib/tls.js
index dc76ab63b..36109469f 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -1320,7 +1320,7 @@ exports.connect = function(/* [port, host], options, cb */) {
var cleartext = pipe(pair, socket);
if (cb) {
- cleartext.on('secureConnect', cb);
+ cleartext.once('secureConnect', cb);
}
if (!options.socket) {