summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-08-30 09:12:56 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-08-30 09:12:56 +0000
commit683fcb33ad03e3bd9a36692e5559d887d757f19c (patch)
tree77cfb69446430b5d2329f3e38e32d81a82d5fe33 /lib/rbot/ircbot.rb
parent80ceba08ef17db4d30f1c522d8ce96198ed3074f (diff)
*** (timer) new timer implementation
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 17d7ffe7..889daed0 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -436,7 +436,7 @@ class Bot
@registry = BotRegistry.new self
- @timer = Timer::Timer.new(1.0) # only need per-second granularity
+ @timer = Timer.new
@save_mutex = Mutex.new
if @config['core.save_every'] > 0
@save_timer = @timer.add(@config['core.save_every']) { save }
@@ -770,7 +770,6 @@ class Bot
begin
quit if $interrupted > 0
connect
- @timer.start
quit_msg = nil
while @socket.connected?
@@ -1052,8 +1051,8 @@ class Bot
@save_mutex.synchronize do
@plugins.cleanup
end
- debug "\tstopping timers ..."
- @timer.stop
+ # debug "\tstopping timers ..."
+ # @timer.stop
# debug "Closing registries"
# @registry.close
debug "\t\tcleaning up the db environment ..."