summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/rss.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index ce52420a..41614609 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -764,13 +764,13 @@ class RSSFeedsPlugin < Plugin
timer = nil
seconds = @bot.config['rss.thread_sleep']
feed.mutex.synchronize do
- timer = @watch[feed.handle]
+ timer = @watch[feed.handle]
seconds = feed.refresh_rate if feed.refresh_rate
end
seconds *= failures + 1
seconds += seconds * (rand(100)-50)/100
debug "watcher for #{feed} going to sleep #{seconds} seconds.."
- @bot.timer.reschedule(timer, seconds)
+ @bot.timer.reschedule(timer, seconds) rescue warning "watcher for #{feed} failed to reschedule: #{$!.inspect}"
}
debug "watcher for #{feed} added"
end