loudmouth/lm-socket.c
changeset 338 e89c3874d6eb
parent 337 7bc0c6ad11ff
parent 330 f606ce2a849e
child 343 35a19649d773
--- a/loudmouth/lm-socket.c	Sun Feb 24 01:01:24 2008 +0100
+++ b/loudmouth/lm-socket.c	Mon Feb 25 20:37:24 2008 +0100
@@ -496,10 +496,12 @@
 			g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_NET,
 			       "Connection failed.\n");
 
-			_lm_socket_failed_with_error (connect_data, err);
-
-			socket->watch_connect = NULL;
-			return FALSE;
+			/* error condition, but might be possible to recover
+			 * from it (by connecting to the next host) */
+			if (!_lm_socket_failed_with_error (connect_data, err)) {
+				socket->watch_connect = NULL;
+				return FALSE;
+			}
 		}
 	}