lets not explode if init is called incorrectly

This commit is contained in:
Sam 2013-11-15 17:03:03 +11:00
parent 3219afd666
commit 8513164b85

View File

@ -13,6 +13,8 @@ module Middleware::UnicornOobgc
ObjectSpace.each_object(Unicorn::HttpServer) do |s|
s.extend(self)
end
rescue
puts "Attempted to patch Unicorn but it is not loaded"
end
def process_client(client)