diff options
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r-- | lib/unicorn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 7415c12..72dc56b 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -87,7 +87,7 @@ module Unicorn # objects; we need to prevent Socket objects from being garbage-collected config_listeners -= listener_names config_listeners.each { |addr| listen(addr) } - listen(Const::DEFAULT_LISTEN) if @listeners.empty? + raise ArgumentError, "no listeners" if @listeners.empty? self.pid = @config[:pid] build_app! if @preload_app $stderr.reopen(@stderr_path, "a") if @stderr_path |