loudmouth/lm-connection.c
changeset 574 f84be3f7c7e0
parent 572 0a4fa0952ef6
--- a/loudmouth/lm-connection.c	Sun Nov 30 09:27:21 2008 +0100
+++ b/loudmouth/lm-connection.c	Sun Nov 30 09:49:06 2008 +0100
@@ -191,12 +191,13 @@
 {
 	int        i;
 
-    /* This needs to be run before starting to free internal states.
-     * It used to be run after the handlers where freed which lead to a crash
-     * when the connection was freed prior to running lm_connection_close.
-     */
-    if (connection->state >= LM_CONNECTION_STATE_OPENING) {
-		connection_do_close (connection);
+        /* This needs to be run before starting to free internal states.
+         * It used to be run after the handlers where freed which lead to a 
+         * crash when the connection was freed prior to running 
+         * lm_connection_close.
+         */
+        if (connection->state >= LM_CONNECTION_STATE_OPENING) {
+          connection_do_close (connection);
 	}
 
 	g_free (connection->server);