From c986bc82f4b856818e97e24fbf5fc11eef5f25c2 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 26 Aug 2007 14:30:03 +0000 Subject: timer: tick when rescheduling --- lib/rbot/timer.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rbot') 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 -- cgit v1.2.3