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,7 +514,6 @@ module Mongo
end end
def sync_refresh def sync_refresh
@connect_mutex.synchronize do
if @refresh_mode == :sync && if @refresh_mode == :sync &&
((Time.now - @last_refresh) > @refresh_interval) ((Time.now - @last_refresh) > @refresh_interval)
@last_refresh = Time.now @last_refresh = Time.now
@ -523,4 +522,3 @@ module Mongo
end end
end end
end end
end