mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:32:45 +08:00
lets not explode if init is called incorrectly
This commit is contained in:
parent
3219afd666
commit
8513164b85
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user