Merge pull request #57 from kesla/handle-etimedout

don't emit ETIMEDOUT-errors
This commit is contained in:
Roman Shtylman
2014-08-31 22:57:30 -07:00

View File

@@ -83,7 +83,7 @@ TunnelCluster.prototype.open = function() {
if (err.code === 'ECONNREFUSED') {
self.emit('error', new Error('connection refused: ' + remote_host + ':' + remote_port + ' (check your firewall settings)'));
}
else {
else if (err.code !== 'ETIMEDOUT') {
self.emit('error', err);
}