summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/iotas/spin.rb2
1 files changed, 1 insertions, 1 deletions
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
#