policy-node: only reconnect to given path_id

When the node is not found and we are not allowed to reconnect to
something else, error.
This commit is contained in:
Wim Taymans 2020-11-16 13:28:35 +01:00
parent 1d3e6b6772
commit 6fa622d2d9

View file

@ -652,7 +652,7 @@ static int rescan_node(struct impl *impl, struct node *n)
pw_log_warn("node %d target:%d not found, find fallback:%d", n->id, pw_log_warn("node %d target:%d not found, find fallback:%d", n->id,
path_id, reconnect); path_id, reconnect);
} }
if (path_id == SPA_ID_INVALID || reconnect) { if (path_id == SPA_ID_INVALID && reconnect) {
spa_list_for_each(peer, &impl->node_list, link) spa_list_for_each(peer, &impl->node_list, link)
find_node(&find, peer); find_node(&find, peer);
} }