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:
parent
af13a6b060
commit
4bf7665c76
@ -90,10 +90,10 @@ static void match_free(Match *m) {
|
|||||||
Match *first;
|
Match *first;
|
||||||
|
|
||||||
first = hashmap_get(m->client->matches, m->match);
|
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);
|
assert_se(hashmap_replace(m->client->matches, m->match, first) >= 0);
|
||||||
} else
|
else
|
||||||
hashmap_remove(m->client->matches, m->match);
|
hashmap_remove(m->client->matches, m->match);
|
||||||
|
|
||||||
m->client->n_matches--;
|
m->client->n_matches--;
|
||||||
|
Loading…
Reference in New Issue
Block a user