diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-03 00:23:47 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-03 00:23:47 +0200 |
commit | fae3c11413e2ac56b4a4e2737fef8550f929d350 (patch) | |
tree | 8d59cd1831aa438fb45d87dafc607391f5712cdb /lib/iotas | |
parent | 3f651995a7524c4eac23697a96a4e70fd95b4bfa (diff) | |
download | edoors-ruby-fae3c11413e2ac56b4a4e2737fef8550f929d350.zip edoors-ruby-fae3c11413e2ac56b4a4e2737fef8550f929d350.tar.gz |
Spin calls Particle#reset! on release not require
Diffstat (limited to 'lib/iotas')
-rw-r--r-- | lib/iotas/spin.rb | 2 |
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 # |