diff --git a/TimberWinR/Outputs/Redis.cs b/TimberWinR/Outputs/Redis.cs index 0e98118..eb8230b 100644 --- a/TimberWinR/Outputs/Redis.cs +++ b/TimberWinR/Outputs/Redis.cs @@ -60,16 +60,17 @@ namespace TimberWinR.Outputs try { RedisClient client = new RedisClient(_redisHosts[_redisHostIndex], _port, _timeout); - - _redisHostIndex++; - if (_redisHostIndex >= _redisHosts.Length) - _redisHostIndex = 0; - return client; } catch (Exception) { } + finally + { + _redisHostIndex++; + if (_redisHostIndex >= _redisHosts.Length) + _redisHostIndex = 0; + } numTries++; }