Properly behave if we manage to connect in the second attempt.
--- a/loudmouth/lm-socket.c Tue Feb 05 23:57:32 2008 +0100
+++ b/loudmouth/lm-socket.c Wed Feb 06 00:12:51 2008 +0100
@@ -485,10 +485,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;
+ }
}
}