Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set DRb conn pool to [] after closing connections
After forking and closing open DRb pooled connections set the pool to [] to prevent other calls calling `conn.close` on already closed connection. This prevents the following: ``` [NoMethodError]: undefined method `close' for nil:NilClass Did you mean? clone /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1258:in `close' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1237:in `block in open' /opt/rh/rh-ruby23/root/usr/share/ruby/sync.rb:234:in `block in sync_synchronize' /opt/rh/rh-ruby23/root/usr/share/ruby/sync.rb:231:in `handle_interrupt' /opt/rh/rh-ruby23/root/usr/share/ruby/sync.rb:231:in `sync_synchronize' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1235:in `open' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1141:in `block in method_missing' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1160:in `with_friend' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1140:in `method_missing' lib/gems/pending/VMwareWebService/MiqVimBroker.rb:419:in `getMiqVim' ``` https://bugzilla.redhat.com/show_bug.cgi?id=1562401
- Loading branch information