about summary refs log tree commit homepage
path: root/lib/yahns/server.rb
diff options
context:
space:
mode:
authorEric Wong <yahns-public@yhbt.net>2017-03-24 19:52:55 +0000
committerEric Wong <e@80x24.org>2017-04-03 19:57:50 +0000
commit5024323bcfe81aa40fa0480c65aa876e8588987a (patch)
treebeaec56db0b9819fe3cf90a851c9c4340fad2e39 /lib/yahns/server.rb
parent5bc5f36b5e5aef6340d94f8809122ac81fe466a2 (diff)
downloadyahns-5024323bcfe81aa40fa0480c65aa876e8588987a.tar.gz
Support for it may be removed in future versions of Ruby(*),
and we actually do not need to waste time looping when
a instance variable will do.

(*) https://bugs.ruby-lang.org/issues/13245
Diffstat (limited to 'lib/yahns/server.rb')
-rw-r--r--lib/yahns/server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb
index 5411c48..43caae6 100644
--- a/lib/yahns/server.rb
+++ b/lib/yahns/server.rb
@@ -450,7 +450,7 @@ class Yahns::Server # :nodoc:
     @queues.each(&:close).clear
 
     # we must not let quitter get GC-ed if we have any worker threads leftover
-    @wthr.each { |t| t[:yahns_quitter] = quitter }
+    @quitter = quitter
 
     quitter.close
   rescue => e