[Telepathy-commits] [telepathy-gabble/master] gabble_tubes_channel_offer_d_bus_tube: call gabble_tube_dbus_offer with muc D-Bus tubes too
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Feb 3 08:28:19 PST 2009
---
src/tubes-channel.c | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/src/tubes-channel.c b/src/tubes-channel.c
index c6a8a21..1ef0c24 100644
--- a/src/tubes-channel.c
+++ b/src/tubes-channel.c
@@ -1572,6 +1572,7 @@ gabble_tubes_channel_offer_d_bus_tube (TpSvcChannelTypeTubes *iface,
guint tube_id;
GabbleTubeIface *tube;
gchar *stream_id;
+ GError *error = NULL;
g_assert (GABBLE_IS_TUBES_CHANNEL (self));
@@ -1584,20 +1585,14 @@ gabble_tubes_channel_offer_d_bus_tube (TpSvcChannelTypeTubes *iface,
tube = create_new_tube (self, TP_TUBE_TYPE_DBUS, priv->self_handle,
service, parameters, (const gchar *) stream_id, tube_id, NULL);
- if (priv->handle_type == TP_HANDLE_TYPE_CONTACT)
+ if (!gabble_tube_dbus_offer (GABBLE_TUBE_DBUS (tube), &error))
{
- /* Stream initiation */
- GError *error = NULL;
-
- if (!gabble_tube_dbus_offer (GABBLE_TUBE_DBUS (tube), &error))
- {
- gabble_tube_iface_close (tube, TRUE);
- dbus_g_method_return_error (context, error);
+ gabble_tube_iface_close (tube, TRUE);
+ dbus_g_method_return_error (context, error);
- g_error_free (error);
- g_free (stream_id);
- return;
- }
+ g_error_free (error);
+ g_free (stream_id);
+ return;
}
tp_svc_channel_type_tubes_return_from_offer_d_bus_tube (context, tube_id);
--
1.5.6.5
More information about the telepathy-commits
mailing list