diff options
Diffstat (limited to 'lib/yahns.rb')
-rw-r--r-- | lib/yahns.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/yahns.rb b/lib/yahns.rb index d48b34d..a55837f 100644 --- a/lib/yahns.rb +++ b/lib/yahns.rb @@ -10,7 +10,9 @@ require 'sleepy_penguin' # on unicorn at all [ :ClientShutdown, :Const, :SocketHelper, :StreamInput, :TeeInput, :SSLConfigurator, :Configurator, :TmpIO, :Util, :Worker, :SSLServer, - :HttpServer ].each { |sym| Unicorn.__send__(:remove_const, sym) } + :HttpServer ].each do |sym| + Unicorn.__send__(:remove_const, sym) if Unicorn.const_defined?(sym) +end # yahns exposes no user-visible API outside of the config file # Internals are subject to change. |