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
1 changed files with 1 additions and 1 deletions

View File

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