we don't need oobgc in ruby 2.2, disable for now

This commit is contained in:
Sam 2015-04-08 15:24:17 +10:00
parent 4aed506917
commit 2d9d60e9a2

View file

@ -5,7 +5,7 @@ if defined? Unicorn::HttpServer
s.extend(Scheduler::Defer::Unicorn) s.extend(Scheduler::Defer::Unicorn)
end end
if ENV['UNICORN_ENABLE_OOBGC'] == '1' if ENV['UNICORN_ENABLE_OOBGC'] == '1' && RUBY_VERSION < "2.2.0"
require 'middleware/unicorn_oobgc' require 'middleware/unicorn_oobgc'
Middleware::UnicornOobgc.init Middleware::UnicornOobgc.init
end end