[telepathy-mission-control/master] McdDispatcher: bugfix: update our idea of what the best handler is

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Apr 7 10:38:48 PDT 2009


Without this, an arbitrarily chosen handler (the last one) will handle
the channels in the case where HandleWith('') is called, even if it can't
actually handle all of them. MC will then fall back to dispatching any
that can't be handled to another arbitrarily chosen handler.
---
 src/mcd-dispatcher.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 45e4b0d..df682a5 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1299,6 +1299,7 @@ mcd_dispatcher_run_handler (McdDispatcherContext *context,
             handler = client;
             g_list_free (handled_best);
             handled_best = handled;
+            num_channels_best = num_channels;
 
             /* we don't even look for other handlers, if this is the one chosen
              * by the approver */
-- 
1.5.6.5




More information about the telepathy-commits mailing list