Fixed major bug where :refresh_mode == :async
This commit is contained in:
parent
8525f4ceac
commit
09c8a3838c
|
@ -216,7 +216,7 @@ module Mongo
|
||||||
|
|
||||||
sync_synchronize(:EX) do
|
sync_synchronize(:EX) do
|
||||||
log(:info, "Refreshing...")
|
log(:info, "Refreshing...")
|
||||||
@background_manager ||= PoolManager.new(self, @seeds)
|
@background_manager = PoolManager.new(self, @seeds)
|
||||||
@background_manager.connect
|
@background_manager.connect
|
||||||
update_config(@background_manager)
|
update_config(@background_manager)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue