From fae3c11413e2ac56b4a4e2737fef8550f929d350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 3 Jun 2012 00:23:47 +0200 Subject: Spin calls Particle#reset! on release not require --- lib/iotas/spin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iotas/spin.rb b/lib/iotas/spin.rb index e8c48e1..bdf35bf 100644 --- a/lib/iotas/spin.rb +++ b/lib/iotas/spin.rb @@ -92,6 +92,7 @@ module Iotas while p2=p.merged_shift release_p p2 end + p.reset! ( @pool[p.class] ||= [] ) << p end # @@ -100,7 +101,6 @@ module Iotas return p_kls.new if l.nil? p = l.pop return p_kls.new if p.nil? - p.reset! p end # -- cgit v1.1-2-g2b99