about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-03 11:35:05 -0800
committerEric Wong <normalperson@yhbt.net>2009-03-03 11:35:05 -0800
commit11172f9bdcc7c57c9ae857a8088e49527a953fa1 (patch)
tree0e74d48cb43ab15add0ecb2342096c4cf089a524
parentd29c40e4be4ea7eb6dafa5a1538f44ba6279c0f3 (diff)
downloadunicorn-11172f9bdcc7c57c9ae857a8088e49527a953fa1.tar.gz
Instead of blindly trying to bind to the default listener
(which is already the default as specified by Configurator).
-rw-r--r--lib/unicorn.rb2
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