From 6e1d887a7ad10e3bfc6cc3f9822b3ff51a987efb Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Mon, 25 Aug 2008 16:34:02 +0000 Subject: [PATCH] Ignore DNS not found errors when considering reconnect. Contrary to the standards, these are often transient. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4873 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/servers-reconnect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c index ae1942af..c8a72628 100644 --- a/src/core/servers-reconnect.c +++ b/src/core/servers-reconnect.c @@ -203,10 +203,10 @@ server_connect_copy_skeleton(SERVER_CONNECT_REC *src, int connect_info) #define server_should_reconnect(server) \ ((server)->connection_lost && !(server)->no_reconnect && \ ((server)->connrec->chatnet != NULL || \ - (!(server)->banned && !(server)->dns_error))) + !(server)->banned)) #define sserver_connect_ok(rec, net) \ - (!(rec)->banned && !(rec)->dns_error && (rec)->chatnet != NULL && \ + (!(rec)->banned && (rec)->chatnet != NULL && \ g_strcasecmp((rec)->chatnet, (net)) == 0) static void sig_reconnect(SERVER_REC *server)