1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

Revert "bus: driverd: don't attempt to remove from empty list"

We need to find the real reason for the failure, this just
avoids the symptoms.

This reverts commit 215c7625dd.
This commit is contained in:
Kay Sievers 2014-01-05 18:53:39 +04:00
parent af13a6b060
commit 4bf7665c76

View File

@ -90,10 +90,10 @@ static void match_free(Match *m) {
Match *first;
first = hashmap_get(m->client->matches, m->match);
if (first) {
LIST_REMOVE(matches, first, m);
LIST_REMOVE(matches, first, m);
if (first)
assert_se(hashmap_replace(m->client->matches, m->match, first) >= 0);
} else
else
hashmap_remove(m->client->matches, m->match);
m->client->n_matches--;