diff --git a/lib/mongo/repl_set_connection.rb b/lib/mongo/repl_set_connection.rb index 5405c58..af3eb0e 100644 --- a/lib/mongo/repl_set_connection.rb +++ b/lib/mongo/repl_set_connection.rb @@ -454,6 +454,7 @@ module Mongo if @refresh_mode == :sync && ((Time.now - @last_refresh) > @refresh_interval) refresh + @last_refresh = Time.now end end end