summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-08-30 14:25:37 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-08-30 14:25:37 +0000
commitbf85fc8d462037b072af0616d8a26d267614a205 (patch)
tree12c61a39715b4dedc47c89097675af19c2e532dc
parent3679815abe399b1357b5ad9196743e8f447f80a1 (diff)
reconnect one connect failures too. Examples are temporary failures in DNS
resolution etc (one user is on a modem which occasionally redials, for example).
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index d16b0583..8e265541 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -330,10 +330,10 @@ class IrcBot
# begin event handling loop
def mainloop
while true
+ begin
connect
@timer.start
- begin
while true
if @socket.select
break unless reply = @socket.gets