chiark / gitweb /
Revert "bus-driverd: do not track identical matches"
authorKay Sievers <kay@vrfy.org>
Wed, 8 Jan 2014 15:07:28 +0000 (23:07 +0800)
committerKay Sievers <kay@vrfy.org>
Wed, 8 Jan 2014 15:07:28 +0000 (23:07 +0800)
This reverts commit 234e28aa1cd37dee597c719ac5ca004c6215d28c.

src/bus-driverd/bus-driverd.c

index 46a5b10974847b8384e95f4b9a7592cfa5686f95..7e0ad1e0c05111235d12cf17b75fd74951e3873c 100644 (file)
@@ -130,10 +130,7 @@ static int match_new(Client *c, struct bus_match_component *components, unsigned
         first = hashmap_get(c->matches, m->match);
         LIST_PREPEND(matches, first, m);
         r = hashmap_replace(c->matches, m->match, first);
         first = hashmap_get(c->matches, m->match);
         LIST_PREPEND(matches, first, m);
         r = hashmap_replace(c->matches, m->match, first);
-        if (r == 0) {
-                log_debug("Match '%s' already installed, ignoring request.", m->match);
-                LIST_REMOVE(matches, first, m);
-        } else if (r < 0) {
+        if (r < 0) {
                 LIST_REMOVE(matches, first, m);
                 goto fail;
         }
                 LIST_REMOVE(matches, first, m);
                 goto fail;
         }