[Telepathy-commits] [telepathy-salut/master] change connection status to disconnected if salut_olpc_activity_manager_start failed

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Nov 26 04:35:37 PST 2008


---
 src/salut-connection.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/salut-connection.c b/src/salut-connection.c
index 49d05cf..39b27c6 100644
--- a/src/salut-connection.c
+++ b/src/salut-connection.c
@@ -897,7 +897,9 @@ _self_established_cb (SalutSelf *s, gpointer data)
 #ifdef ENABLE_OLPC
   if (!salut_olpc_activity_manager_start (priv->olpc_activity_manager, NULL))
     {
-      /* XXX handle error */
+      tp_base_connection_change_status ( TP_BASE_CONNECTION (base),
+          TP_CONNECTION_STATUS_DISCONNECTED,
+          TP_CONNECTION_STATUS_REASON_NETWORK_ERROR);
       return;
     }
 #endif
-- 
1.5.6.5



More information about the Telepathy-commits mailing list