summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-02-18 19:33:28 +0000
committerCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-02-25 15:37:52 +0000
commit8d884a2f125a1f96256ec2511fd10a0590a77c85 (patch)
tree0d7461f97b3512f0d81ac5ae0324a3ec9a68d557
parentc379854bdc7eb3d7c636253879ee58b37ef21879 (diff)
downloadtelepathy-logger-8d884a2f125a1f96256ec2511fd10a0590a77c85.tar.gz
Improved debug while called during open channel inspection
Also fixed the code comments
-rw-r--r--telepathy-logger/observer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/telepathy-logger/observer.c b/telepathy-logger/observer.c
index 3cc297c..22b9aac 100644
--- a/telepathy-logger/observer.c
+++ b/telepathy-logger/observer.c
@@ -162,6 +162,10 @@ tpl_observer_observe_channels (TpSvcClientObserver *self,
g_return_if_fail (!TPL_STR_EMPTY (account));
g_return_if_fail (!TPL_STR_EMPTY (connection));
+ if (dbus_context == NULL)
+ DEBUG ("called during open channel inspection, not by the Channel "
+ "Dispatcher. OK.");
+
chan_factory = tpl_observer_get_channel_factory (TPL_OBSERVER (self));
/* Check if logging if enabled globally and for the given account_path,
@@ -280,9 +284,9 @@ got_tpl_channel_text_ready_cb (GObject *obj,
observing_ctx->chan_n -= 1;
if (observing_ctx->chan_n == 0)
{
- /* observer_channels has been called by the Channel Dispatcher */
if (dbus_ctx != NULL)
{
+ /* observer_channels has been called by the Channel Dispatcher */
DEBUG ("Returning from observe channels");
tp_svc_client_observer_return_from_observe_channels (dbus_ctx);
}