diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-03 10:18:12 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-03 10:18:12 +0200 |
commit | 6e400f6016a8e335c8482a8ae1802c4a76662892 (patch) | |
tree | 1ae040e59456c8ce42b275b82b02823e95f53a2f /lib/iotas/spin.rb | |
parent | d15d685884db41c7480f30c201d7303de8c55788 (diff) | |
download | edoors-ruby-6e400f6016a8e335c8482a8ae1802c4a76662892.zip edoors-ruby-6e400f6016a8e335c8482a8ae1802c4a76662892.tar.gz |
simplify Particle@dst life cycle
Partilce#dst_reached! is removed
Particle#init! set @dst=nil
Door#send_ calls Particle#set_dst if parameters are provided
Diffstat (limited to 'lib/iotas/spin.rb')
-rw-r--r-- | lib/iotas/spin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/iotas/spin.rb b/lib/iotas/spin.rb index bdf35bf..1f3c180 100644 --- a/lib/iotas/spin.rb +++ b/lib/iotas/spin.rb @@ -128,11 +128,11 @@ module Iotas while @run and (@sys_fifo.length>0 or @app_fifo.length>0) while @run and @sys_fifo.length>0 p = @sys_fifo.shift - p.dst_reached!.process_sys_p p + p.dst.process_sys_p p end while @run and @app_fifo.length>0 p = @app_fifo.shift - p.dst_reached!.process_p p + p.dst.process_p p break end end |