diff options
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/ircbot.rb | 3 | ||||
-rw-r--r-- | lib/rbot/timer.rb | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 507fa907..889daed0 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -1048,7 +1048,6 @@ class Bot debug "\tsaving ..." save debug "\tcleaning up ..." - @timer.block(@save_timer) if @save_timer @save_mutex.synchronize do @plugins.cleanup end @@ -1101,12 +1100,10 @@ class Bot # call the rescan method for all of the botmodules def rescan - @timer.block(@save_timer) if @save_timer @save_mutex.synchronize do @lang.rescan @plugins.rescan end - @timer.unblock(@save_timer) if config['core.save_every'] > 0 end # channel:: channel to join diff --git a/lib/rbot/timer.rb b/lib/rbot/timer.rb index dd30ab68..1802f9d2 100644 --- a/lib/rbot/timer.rb +++ b/lib/rbot/timer.rb @@ -108,6 +108,7 @@ class Timer rescue Exception => e error "Timer action #{self.inspect}: block #{@block.inspect} failed!" error e.pretty_inspect + debug e.backtrace.join("\n") end if @repeat && @period > 0 |