Revert "bus-driverd: do not track identical matches"

This reverts commit 234e28aa1c.
This commit is contained in:
Kay Sievers
2014-01-08 23:07:28 +08:00
parent 9130f2128b
commit 950f87b7e5
+1 -4
View 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);
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;
}