From bf85fc8d462037b072af0616d8a26d267614a205 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Tue, 30 Aug 2005 14:25:37 +0000 Subject: [PATCH] reconnect one connect failures too. Examples are temporary failures in DNS resolution etc (one user is on a modem which occasionally redials, for example). --- lib/rbot/ircbot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5