summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-03 00:23:47 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-03 00:23:47 +0200
commitfae3c11413e2ac56b4a4e2737fef8550f929d350 (patch)
tree8d59cd1831aa438fb45d87dafc607391f5712cdb
parent3f651995a7524c4eac23697a96a4e70fd95b4bfa (diff)
downloadedoors-ruby-fae3c11413e2ac56b4a4e2737fef8550f929d350.zip
edoors-ruby-fae3c11413e2ac56b4a4e2737fef8550f929d350.tar.gz
Spin calls Particle#reset! on release not require
-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
#