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