]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit - lib/rbot/ircbot.rb
ircbot.rb: ensure that the logger is flushed
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 20 Jun 2008 09:56:45 +0000 (11:56 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 20 Jun 2008 09:56:45 +0000 (11:56 +0200)
commitbe3cd762fbd809c789c3783f866c83b1124f95dd
tree03bc8a8cdf6f10258476ea43538ba6113ffd01ee
parentb09833f9d0e01ed655ddec5f73f3a7dd07aafee4
ircbot.rb: ensure that the logger is flushed

If the bot fails to load (e.g. because of missing dependency) the user
might miss the last error messages because the logger thread wouldn't
reach completion. Ensure its closure in an END block.
lib/rbot/ircbot.rb