adding more error handling

This commit is contained in:
John Shaver 2018-05-04 10:13:22 -07:00
父節點 c2c7ed40d5
當前提交 a254958bf6
共有 1 個檔案被更改,包括 1 行新增0 行删除

查看文件

@ -57,6 +57,7 @@ module.exports.create = function (deps, config, tcpMods) {
socket.on('error', function (err) {
console.log('wrapped TLS socket error', err);
if(reader.listenerCount("error")){
console.log("There are error handlers that should handle this emiting error.");
reader.emit('error', err);
} else {
console.log('Wrapped TLS socket had no error handlers for error. Socket object: ', reader);