Reload event/scenes/rules before executing any rules

This commit is contained in:
Paul van Tilburg 2014-11-15 22:24:11 +01:00
parent 24c95f417a
commit 1f0bf617f0
1 changed files with 1 additions and 1 deletions

2
hued
View File

@ -370,7 +370,7 @@ Signal.trap("TERM") { EM.stop }
# Create the main engine and trigger it periodically
hued = Hued.new(options)
EM.run do
EM.add_periodic_timer(10) { hued.execute }
EM.add_periodic_timer(10) { hued.reload; hued.execute }
EM.add_periodic_timer(300) { hued.refresh! }
end
hued.shutdown