Fixed major bug where :refresh_mode == :sync

This commit is contained in:
Kyle Banker 2011-10-06 14:26:39 -04:00
parent 018da9049c
commit 8525f4ceac
1 changed files with 1 additions and 0 deletions

View File

@ -454,6 +454,7 @@ module Mongo
if @refresh_mode == :sync && if @refresh_mode == :sync &&
((Time.now - @last_refresh) > @refresh_interval) ((Time.now - @last_refresh) > @refresh_interval)
refresh refresh
@last_refresh = Time.now
end end
end end
end end