summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-26 14:30:03 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-26 14:30:03 +0000
commitc986bc82f4b856818e97e24fbf5fc11eef5f25c2 (patch)
tree8b0ae9b7a94719e805b94128ffcb7746905557d7 /lib/rbot
parent2521a153c686db284e508b03bd0be93210f4e9b4 (diff)
timer: tick when rescheduling
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/timer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/timer.rb b/lib/rbot/timer.rb
index db0c6ea1..bebe41f2 100644
--- a/lib/rbot/timer.rb
+++ b/lib/rbot/timer.rb
@@ -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