link-factory: destroy all links in error

There is no possibility to recover from this so simply destroy the link.
The clients should already have received the link status when we destroy
it.
This commit is contained in:
Wim Taymans 2024-07-19 12:06:09 +02:00
parent 7447dedef4
commit 9a313a5d42

View file

@ -163,8 +163,7 @@ static void link_state_changed(void *data, enum pw_link_state old,
switch (state) {
case PW_LINK_STATE_ERROR:
if (ld->linger)
pw_work_queue_add(d->work, ld, 0, destroy_link, ld);
pw_work_queue_add(d->work, ld, 0, destroy_link, ld);
break;
default:
break;