mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 23:39:23 +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…
x
Reference in New Issue
Block a user