lib/rails_failover/redis/handler.rb in rails_failover-0.5.3 vs lib/rails_failover/redis/handler.rb in rails_failover-0.5.4

- old
+ new

@@ -161,10 +161,10 @@ mon_synchronize do if !@primaries_down[process_pid] @primaries_down[process_pid] = @primaries_down[@ancestor_pid] || {} if process_pid != @ancestor_pid - @primaries_down.delete(@ancestor_pid).each do |id, options| + @primaries_down.delete(@ancestor_pid)&.each do |id, options| verify_primary(options) end end end