about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-07-03 01:44:28 -0700
committerEric Wong <normalperson@yhbt.net>2009-07-03 01:45:31 -0700
commit672befaa67ace119c07ee346124526c1e0c4a1f1 (patch)
treef7e1ca53cf4924a10caf375698f181a37c7b1f2b
parentb67ff587730abfd4e1f78c448ef128315fbf786d (diff)
downloadunicorn-672befaa67ace119c07ee346124526c1e0c4a1f1.tar.gz
Array#+= creates a new array before assigning, Array#concat just
appends one array to another without an intermediate one.
-rw-r--r--lib/unicorn.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 281aa7d..3e1d418 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -131,8 +131,7 @@ module Unicorn
         end
       end
       set_names = listener_names(listeners)
-      dead_names += cur_names - set_names
-      dead_names.uniq!
+      dead_names.concat(cur_names - set_names).uniq!
 
       LISTENERS.delete_if do |io|
         if dead_names.include?(sock_name(io))