diff --git a/app/models/miq_worker.rb b/app/models/miq_worker.rb index 3ee79835e70..65d7371d773 100644 --- a/app/models/miq_worker.rb +++ b/app/models/miq_worker.rb @@ -350,6 +350,7 @@ def self.close_drb_pool_connections # Once that is added this should be replaced. DRb::DRbConn.instance_variable_get(:@mutex).synchronize do DRb::DRbConn.instance_variable_get(:@pool).each(&:close) + DRb::DRbConn.instance_variable_set(:@pool, []) end end