module-combine-sink: remove listener before core_disconnect

This commit is contained in:
Wim Taymans 2023-01-24 15:41:00 +01:00
parent 4eac50966a
commit 6d6cd6bbfb

View file

@ -867,9 +867,9 @@ static void impl_destroy(struct impl *impl)
impl->registry = NULL;
}
if (impl->core) {
spa_hook_remove(&impl->core_listener);
if (impl->do_disconnect)
pw_core_disconnect(impl->core);
spa_hook_remove(&impl->core_listener);
impl->core = NULL;
}