diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-03 11:35:05 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-03 11:35:05 -0800 |
commit | 11172f9bdcc7c57c9ae857a8088e49527a953fa1 (patch) | |
tree | 0e74d48cb43ab15add0ecb2342096c4cf089a524 /lib | |
parent | d29c40e4be4ea7eb6dafa5a1538f44ba6279c0f3 (diff) | |
download | unicorn-11172f9bdcc7c57c9ae857a8088e49527a953fa1.tar.gz |
Instead of blindly trying to bind to the default listener (which is already the default as specified by Configurator).
Diffstat (limited to 'lib')
-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 |