diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-08-30 19:35:23 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-08-30 19:35:23 +0000 |
commit | 271fa1315aa0afd0330b61cd4e5071a20fa86c1d (patch) | |
tree | b4df447ec3a1a36deff886844e9ce7ed0c8e4440 | |
parent | a1bd10b2fd194646b8fdd1151d490f61d59792d5 (diff) |
* (timers) failures made more verbose; reverted timer.block()s in ircbot.rb
-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 |