Fixed major bug where :refresh_mode == :sync
This commit is contained in:
parent
018da9049c
commit
8525f4ceac
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue