mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
7447dedef4
commit
9a313a5d42
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue