]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit - lib/rbot/ircbot.rb
ircbot: the reconnect must be protected
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 28 Jan 2009 13:51:21 +0000 (14:51 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 28 Jan 2009 14:03:35 +0000 (15:03 +0100)
commit78978a4654ad851b0fa18bcd3d165b9c173f0375
treeb9e865f08c9dee1487e048f3dd1dfe930b6e418f
parent2a2144addbcb717b983dd18f993f276cc8bd4ef8
ircbot: the reconnect must be protected

The reconnect() call in the main loop must be protected in the
begin/rescue blocks. Most of the rescue blocks can be fall-through,
because the begin/end is wrapped in a loop. The only exception is the
ServerError block that issues a retry lest too_fast is reset to false
even when it should be true.
lib/rbot/ircbot.rb