diff options
Diffstat (limited to 'src/client-registry.c')
-rw-r--r-- | src/client-registry.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/client-registry.c b/src/client-registry.c index 796f7ea0..6651b76e 100644 --- a/src/client-registry.c +++ b/src/client-registry.c @@ -383,16 +383,8 @@ watch_clients (McdClientRegistry *self) self, NULL); - if (arg0_filtered) - { - arg0_filtered = add_match (dconn, CLIENT_MATCH_RULE, "client names"); - - if (!arg0_filtered) - arg0_filtered = add_match (dconn, NAME_OWNER_RULE, "all dbus names"); - } - - if (!arg0_filtered) - g_warning ("Could not add match & filter for telepathy client names"); + if (arg0_filtered && !add_match (dconn, CLIENT_MATCH_RULE, "client names")) + add_match (dconn, NAME_OWNER_RULE, "all dbus names"); } static void |