From 9a313a5d428a84940735260e97ee1bf52a747b16 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 19 Jul 2024 12:06:09 +0200 Subject: [PATCH] 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. --- src/modules/module-link-factory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/module-link-factory.c b/src/modules/module-link-factory.c index 56a0b963f..a5441c911 100644 --- a/src/modules/module-link-factory.c +++ b/src/modules/module-link-factory.c @@ -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;