RUBY-416 removed connect_mutex from sync_refresh

This commit is contained in:
Tyler Brock 2012-02-27 18:04:45 -05:00
parent ebfe279784
commit 4da27036cf
1 changed files with 4 additions and 6 deletions

View File

@ -514,12 +514,10 @@ module Mongo
end
def sync_refresh
@connect_mutex.synchronize do
if @refresh_mode == :sync &&
((Time.now - @last_refresh) > @refresh_interval)
@last_refresh = Time.now
refresh
end
if @refresh_mode == :sync &&
((Time.now - @last_refresh) > @refresh_interval)
@last_refresh = Time.now
refresh
end
end
end