From: Giuseppe Bilotta Date: Sun, 26 Aug 2007 14:30:03 +0000 (+0000) Subject: timer: tick when rescheduling X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=c986bc82f4b856818e97e24fbf5fc11eef5f25c2;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git timer: tick when rescheduling --- 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