Update the connection state after SASL authentication result.
The connections state were never updated after the SASL authentication was
finished.
--- a/loudmouth/lm-connection.c Sat Feb 24 02:22:55 2007 +0100
+++ b/loudmouth/lm-connection.c Sat Feb 24 02:23:46 2007 +0100
@@ -801,6 +801,12 @@
static void
connection_call_auth_cb (LmConnection *connection, gboolean success)
{
+ if (success) {
+ connection->state = LM_CONNECTION_STATE_AUTHENTICATED;
+ } else {
+ connection->state = LM_CONNECTION_STATE_OPEN;
+ }
+
if (connection->auth_cb) {
LmCallback *cb = connection->auth_cb;