adding an error handler for the tls socket connection
This commit is contained in:
parent
220c5fd442
commit
48b5537683
@ -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);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user