Skip to content

Commit

Permalink
properly handle nil slaves
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlecompte committed Aug 13, 2012
1 parent be57080 commit 2791583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis_failover/client.rb
Expand Up @@ -277,7 +277,7 @@ def build_clients
def should_notify?
return false unless @on_node_change
return true if @last_notified_master != current_master
return true if different?(@last_notified_slaves, current_slaves)
return true if different?(Array(@last_notified_slaves), current_slaves)
false
end

Expand Down

0 comments on commit 2791583

Please sign in to comment.