summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <robert.mcqueen@collabora.co.uk>2006-02-17 12:31:03 +0000
committer <robert.mcqueen@collabora.co.uk>2006-02-17 12:31:03 +0000
commitf2e847eccd41a56bb0e21c8243e1e5eeb08d37b2 (patch)
treea6edd612fde7c1fabeb5591d75c97da6fb1ef9bd
parent834a01e4b175fb6bae9879eac9d99437c836e306 (diff)
only emit our on-line status in a successful auth callback, not after successfully sending the initial auth *request*
-rw-r--r--src/gabble-connection.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gabble-connection.c b/src/gabble-connection.c
index b4232ae52..17d73c4ea 100644
--- a/src/gabble-connection.c
+++ b/src/gabble-connection.c
@@ -1805,10 +1805,6 @@ connection_open_cb (LmConnection *lmconn,
connection_status_change (conn, TP_CONN_STATUS_DISCONNECTED,
TP_CONN_STATUS_REASON_NETWORK_ERROR);
}
- else
- {
- connection_status_change (conn, TP_CONN_STATUS_CONNECTED, TP_CONN_STATUS_REASON_REQUESTED);
- }
}
/**
@@ -1842,6 +1838,9 @@ connection_auth_cb (LmConnection *lmconn,
return;
}
+ /* go go gadget on-line */
+ connection_status_change (conn, TP_CONN_STATUS_CONNECTED, TP_CONN_STATUS_REASON_REQUESTED);
+
/* send presence to the server to indicate availability */
if (!signal_own_presence (conn, &error))
{