Loop until connected in reconnect()
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 20 Oct 2009 18:22:22 +0000 (20:22 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 21 Oct 2009 16:59:21 +0000 (18:59 +0200)
commit7f9a979b04fbacda7343b1bcbda1ce83bfb31402
treeb93fa30593a943bb086aaff99916a645d4ca0d49
parent5829ccecaf24f2adb47f8f98a778ba9e3d3cc90b
Loop until connected in reconnect()

Untrapped connect() failures would raise up to the mainloop, causing a
burst of reconnect attempts without delay. Fix by rescuing in
reconnect() and retrying after waiting.
lib/rbot/ircbot.rb