[telepathy-mission-control/master] mcd_dispatcher_context_unref: emit a debug message when our side-effect of finishing CDOs happens

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Nov 2 06:41:54 PST 2009


Ideally, this shouldn't happen.
---
 src/mcd-dispatcher.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 02ae59d..c93388c 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1923,7 +1923,11 @@ mcd_dispatcher_context_unref (McdDispatcherContext * context,
             mcd_dispatcher_op_ready_to_dispatch_cb, context);
 
         /* may emit finished */
-        _mcd_dispatch_operation_finish (context->operation);
+        if (_mcd_dispatch_operation_finish (context->operation))
+        {
+            DEBUG ("Operation wasn't finished when context was unreffed down "
+                   "to nothing!");
+        }
 
         g_signal_handlers_disconnect_by_func (context->operation,
                                               on_operation_finished,
-- 
1.5.6.5




More information about the telepathy-commits mailing list