# HG changeset patch # User Senko Rasic # Date 1193784678 -3600 # Node ID 153357413e1b0ad767705b6765a5266fcfeb3407 # Parent 8cfd2c340b9a7fb9b6fd1e1e84c6812924e85835 Allow application handlers on stream errors, before closing down the connection. diff -r 8cfd2c340b9a -r 153357413e1b loudmouth/lm-connection.c --- a/loudmouth/lm-connection.c Tue Oct 30 23:43:55 2007 +0100 +++ b/loudmouth/lm-connection.c Tue Oct 30 23:51:18 2007 +0100 @@ -259,11 +259,6 @@ goto out; } - if (lm_message_get_type (m) == LM_MESSAGE_TYPE_STREAM_ERROR) { - connection_stream_error (connection, m); - goto out; - } - if ((lm_message_get_sub_type (m) == LM_MESSAGE_SUB_TYPE_ERROR) || (lm_message_get_sub_type (m) == LM_MESSAGE_SUB_TYPE_RESULT)) { id = lm_message_node_get_attribute (m->node, "id"); @@ -294,6 +289,11 @@ m); } + if (lm_message_get_type (m) == LM_MESSAGE_TYPE_STREAM_ERROR) { + connection_stream_error (connection, m); + goto out; + } + out: lm_connection_unref (connection);