diff options
-rw-r--r-- | lib/rbot/timer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/timer.rb b/lib/rbot/timer.rb index f68e490a..aafa9be2 100644 --- a/lib/rbot/timer.rb +++ b/lib/rbot/timer.rb @@ -248,7 +248,7 @@ class Timer @actions.delete k unless a.next end - nxt = @actions.values.map { |v| v.next }.min + nxt = @actions.values.find_all { |v| !v.blocked? }.map{ |v| v.next }.min if nxt delta = nxt - now |