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.
--- 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);
}