]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/timer.rb
timer: tick when rescheduling
[user/henk/code/ruby/rbot.git] / lib / rbot / timer.rb
index db0c6ea16bee0d89aefd0104832347551fee997c..bebe41f2fd589ba2fd9ccd41db8d354eb7dde0f2 100644 (file)
@@ -131,6 +131,7 @@ module Timer
     def reschedule(handle, period)
       raise "no such timer #{handle}" unless @timers[handle]
       @timers[handle].reschedule(period)
+      tick
     end
 
     # you can call this when you know you're idle, or you can split off a