Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #57 from fanhattan/free_client-retry-fix

Make sure free_client() method is called on connection retries.
  • Loading branch information...
commit 15778c751c650cdf1c5315c6bf0dd25527894999 2 parents f718c29 + 317af76
Ryan LeCompte authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/redis_failover/client.rb
1  lib/redis_failover/client.rb
View
@@ -241,6 +241,7 @@ def dispatch(method, *args, &block)
if tries < @max_retries
tries += 1
+ free_client
build_clients
sleep(RETRY_WAIT_TIME)
retry
Please sign in to comment.
Something went wrong with that request. Please try again.