From aefd63a429fff8d043b05cb413b6e2f8cf861930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 28 Jun 2012 14:34:14 +0200 Subject: Spin: #spin! calls Room#start! and Room#stop! --- lib/edoors/spin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/edoors/spin.rb b/lib/edoors/spin.rb index ec86d9f..6800c8f 100644 --- a/lib/edoors/spin.rb +++ b/lib/edoors/spin.rb @@ -206,7 +206,7 @@ module Edoors # after all Iota#stop! is called on each children, unless the system is going into hibernation # def spin! - @iotas.values.each do |iota| iota.start! end unless @hibernation + start! @run = true @hibernation = false while @run and (@sys_fifo.length>0 or @app_fifo.length>0) @@ -220,7 +220,7 @@ module Edoors break end end - @iotas.values.each do |iota| iota.stop! end unless @hibernation + stop! end # # stops the spinning -- cgit v1.1-2-g2b99