]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Fix rescheduling of timers
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 4 Feb 2007 12:56:01 +0000 (12:56 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 4 Feb 2007 12:56:01 +0000 (12:56 +0000)
lib/rbot/timer.rb

index 0527c1e782e19578c8565a4f8c38be4d2f7807d8..5d52717956306565ac60c3f9a086be297912559d 100644 (file)
@@ -56,6 +56,7 @@ module Timer
     # reschedule the Action to change its period
     def reschedule(new_period)
       @period = new_period
+      @in = new_period
     end
   end