[telepathy-mission-control/master] McdChannel: improve debug when closing channels
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon May 25 06:52:22 PDT 2009
---
src/mcd-channel.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/mcd-channel.c b/src/mcd-channel.c
index 3bd79b4..c645006 100644
--- a/src/mcd-channel.c
+++ b/src/mcd-channel.c
@@ -258,7 +258,7 @@ mcd_channel_close (McdChannel *channel)
tp_channel_get_channel_type_id (priv->tp_chan) !=
TP_IFACE_QUARK_CHANNEL_TYPE_CONTACT_LIST)
{
- DEBUG ("Requesting telepathy to close the channel");
+ DEBUG ("Requesting telepathy to Close() the channel");
tp_cli_channel_call_close (priv->tp_chan, -1, NULL, NULL, NULL, NULL);
}
}
@@ -273,13 +273,18 @@ _mcd_channel_undispatchable (McdChannel *channel)
tp_channel_get_channel_type_id (priv->tp_chan) ==
TP_IFACE_QUARK_CHANNEL_TYPE_CONTACT_LIST)
{
+ DEBUG ("%p has no TpChannel, already closed or is a contact list",
+ channel);
return;
}
+ DEBUG ("%p: %s", channel, mcd_channel_get_object_path (channel));
+
/* Call Destroy() if possible, or Close() */
if (tp_proxy_has_interface_by_id (priv->tp_chan,
TP_IFACE_QUARK_CHANNEL_INTERFACE_DESTROYABLE))
{
+ DEBUG ("calling Destroy()");
tp_cli_channel_interface_destroyable_call_destroy (priv->tp_chan,
-1, NULL,
NULL, NULL,
@@ -287,6 +292,7 @@ _mcd_channel_undispatchable (McdChannel *channel)
}
else
{
+ DEBUG ("calling Close()");
tp_cli_channel_call_close (priv->tp_chan, -1, NULL, NULL, NULL,
NULL);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list