adding an error handler for the tls socket connection

This commit is contained in:
Solomon English 2014-05-07 02:18:03 -07:00
parent 220c5fd442
commit 48b5537683

View File

@ -89,6 +89,10 @@ Connection.prototype.connect = function(port, host) {
});
self.attachListeners(self.stream);
self.emit('sslconnect');
self.stream.on('error', function(error){
self.emit('error', error);
});
});
};