2005-04-18 Mikael Hallendal <micke@imendio.com>
authorhallski <hallski>
Mon, 18 Apr 2005 16:44:25 +0000
changeset 113 093ad250d17c
parent 112 0ab325e81427
child 114 ebc113e63908
2005-04-18 Mikael Hallendal <micke@imendio.com> * loudmouth/lm-connection.c: (connection_free): - Check if connection is opening as well and close it if it is. - Fix suggested by Daniel Lavalliere.
ChangeLog
loudmouth/lm-connection.c
--- a/ChangeLog	Thu Mar 31 20:30:34 2005 +0000
+++ b/ChangeLog	Mon Apr 18 16:44:25 2005 +0000
@@ -1,3 +1,9 @@
+2005-04-18  Mikael Hallendal  <micke@imendio.com>
+
+	* loudmouth/lm-connection.c: (connection_free):
+	- Check if connection is opening as well and close it if it is.
+	- Fix suggested by Daniel Lavalliere.
+
 2005-03-31  Mikael Hallendal  <micke@imendio.com>
 
 	* Makefile.am:
--- a/loudmouth/lm-connection.c	Thu Mar 31 20:30:34 2005 +0000
+++ b/loudmouth/lm-connection.c	Mon Apr 18 16:44:25 2005 +0000
@@ -203,7 +203,7 @@
 
 	g_hash_table_destroy (connection->id_handlers);
 
-	if (lm_connection_is_open (connection)) {
+	if (connection->state >= LM_CONNECTION_STATE_OPENING) {
 		connection_do_close (connection);
 	}