mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
jack: only remove node when we added it before
This commit is contained in:
parent
fca6808419
commit
1fc7c6de59
1 changed files with 4 additions and 3 deletions
|
|
@ -502,11 +502,12 @@ static void node_destroy(void *data)
|
||||||
|
|
||||||
pw_log_debug("module-jack %p: jack_client %p destroy", impl, jc);
|
pw_log_debug("module-jack %p: jack_client %p destroy", impl, jc);
|
||||||
|
|
||||||
if (jc->activated)
|
if (jc->activated) {
|
||||||
client_deactivate(impl, ref_num);
|
client_deactivate(impl, ref_num);
|
||||||
|
if (jc->realtime)
|
||||||
spa_list_remove(&jc->client_link);
|
|
||||||
spa_list_remove(&jc->node->graph_link);
|
spa_list_remove(&jc->node->graph_link);
|
||||||
|
}
|
||||||
|
spa_list_remove(&jc->client_link);
|
||||||
|
|
||||||
jack_server_free_ref_num(server, ref_num);
|
jack_server_free_ref_num(server, ref_num);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue