2005-01-27 Martyn Russell <mr@gnome.org>
authorhallski <hallski>
Thu, 27 Jan 2005 13:25:33 +0000
changeset 106 449f5a0dcdde
parent 105 9eafd0e8c702
child 107 aa7e8b466ca8
2005-01-27 Martyn Russell <mr@gnome.org> * loudmouth/lm-connection.c (_lm_connection_failed_with_error): - Added fix to call the open callback when all connection attempts fail to the destination server.
ChangeLog
loudmouth/lm-connection.c
--- a/ChangeLog	Wed Jan 19 22:12:15 2005 +0000
+++ b/ChangeLog	Thu Jan 27 13:25:33 2005 +0000
@@ -1,3 +1,9 @@
+2005-01-27  Martyn Russell  <mr@gnome.org>
+
+	* loudmouth/lm-connection.c (_lm_connection_failed_with_error): 
+	- Added fix to call the open callback when all connection attempts
+	fail to the destination server.
+
 2005-01-19  Mikael Hallendal  <micke@imendio.com>
 
 	* loudmouth/lm-connection.c: (connection_in_event):
--- a/loudmouth/lm-connection.c	Wed Jan 19 22:12:15 2005 +0000
+++ b/loudmouth/lm-connection.c	Thu Jan 27 13:25:33 2005 +0000
@@ -395,6 +395,16 @@
 	}
 	
 	if (connect_data->current_addr == NULL) {
+		LmConnection *connection;
+
+		connection = connect_data->connection;
+		if (connection->open_cb && connection->open_cb->func) {
+			LmCallback *cb = connection->open_cb;
+			
+			(* ((LmResultFunction) cb->func)) (connection, FALSE,
+							   cb->user_data);
+		}
+
 		freeaddrinfo (connect_data->resolved_addrs);
 		g_free (connect_data);
 	} else {