[Telepathy-commits] [telepathy-salut/master] salut_tubes_channel_offer_stream_tube: call salut_tube_stream_offer

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Mar 11 09:15:24 PDT 2009


---
 src/salut-tubes-channel.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/salut-tubes-channel.c b/src/salut-tubes-channel.c
index af97cd4..fe500db 100644
--- a/src/salut-tubes-channel.c
+++ b/src/salut-tubes-channel.c
@@ -2105,9 +2105,19 @@ salut_tubes_channel_offer_stream_tube (TpSvcChannelTypeTubes *iface,
 
   if (priv->handle_type == TP_HANDLE_TYPE_CONTACT)
     {
+      /* FIXME: this is horrible. That should be done using
+       * salut_tube_stream_offer */
       salut_tubes_channel_send_iq_offer (self);
     }
 
+  if (!salut_tube_stream_offer (SALUT_TUBE_STREAM (tube), &error))
+    {
+      salut_tube_iface_close (tube, TRUE);
+
+      dbus_g_method_return_error (context, error);
+      return;
+    }
+
   g_signal_connect (tube, "tube-new-connection",
       G_CALLBACK (stream_tube_new_connection_cb), self);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list