Index: loudmouth-1.4.3/loudmouth/lm-connection.c =================================================================== --- loudmouth-1.4.3.orig/loudmouth/lm-connection.c 2012-09-28 18:02:12.000000000 +0300 +++ loudmouth-1.4.3/loudmouth/lm-connection.c 2012-09-28 17:58:38.000000000 +0300 @@ -1454,13 +1454,15 @@ lm_connection_authenticate (LmConnection connection_sasl_auth_finished); g_free (domain); - connection->features_cb = - lm_message_handler_new (connection_features_cb, - NULL, NULL); - lm_connection_register_message_handler (connection, - connection->features_cb, - LM_MESSAGE_TYPE_STREAM_FEATURES, - LM_HANDLER_PRIORITY_FIRST); + if(!connection->features_cb) { + connection->features_cb = + lm_message_handler_new (connection_features_cb, + NULL, NULL); + lm_connection_register_message_handler (connection, + connection->features_cb, + LM_MESSAGE_TYPE_STREAM_FEATURES, + LM_HANDLER_PRIORITY_FIRST); + } return TRUE; }