[telepathy-mission-control/master] _mcd_dispatch_operation_check_client_locks: early-return when there are no channels left
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Oct 27 15:00:14 PDT 2009
We don't want to reply to Claim() or call HandleChannels() if there's
nothing there.
---
src/mcd-dispatch-operation.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mcd-dispatch-operation.c b/src/mcd-dispatch-operation.c
index dfb06d6..44a9daf 100644
--- a/src/mcd-dispatch-operation.c
+++ b/src/mcd-dispatch-operation.c
@@ -340,6 +340,7 @@ _mcd_dispatch_operation_check_client_locks (McdDispatchOperation *self)
DEBUG ("Nothing left to dispatch");
_mcd_dispatch_operation_finish (self);
self->priv->channels_handled = TRUE;
+ return;
}
/* if we've been claimed, respond, then do not call HandleChannels */
--
1.5.6.5
More information about the telepathy-commits
mailing list