From 09c8a3838c015a9b4869d4ccb6fb75c93742eac1 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Thu, 6 Oct 2011 14:50:51 -0400 Subject: [PATCH] Fixed major bug where :refresh_mode == :async --- lib/mongo/repl_set_connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/repl_set_connection.rb b/lib/mongo/repl_set_connection.rb index af3eb0e..f07c7f9 100644 --- a/lib/mongo/repl_set_connection.rb +++ b/lib/mongo/repl_set_connection.rb @@ -216,7 +216,7 @@ module Mongo sync_synchronize(:EX) do log(:info, "Refreshing...") - @background_manager ||= PoolManager.new(self, @seeds) + @background_manager = PoolManager.new(self, @seeds) @background_manager.connect update_config(@background_manager) end