mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 17:00:05 +01:00
linking: handle 'node.linger' property when target node not known
Do not send an error to the client when the target is not defined and the 'node.linger' property is set. It is not absolutely necessary that every node has a defined target. We can have a 'Stream/Output/*' node which can be linked to multiple 'Stream/Input/*' nodes and only the 'Stream/Input/*' nodes have a defined target.
This commit is contained in:
parent
1d2fe9b62d
commit
ac508aef57
1 changed files with 7 additions and 0 deletions
|
|
@ -104,6 +104,13 @@ SimpleEventHook {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local linger = cutils.parseBool (si_props ["node.linger"])
|
||||||
|
|
||||||
|
if linger then
|
||||||
|
log:info (si, "... node linger")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
lutils.sendClientError (event, node,
|
lutils.sendClientError (event, node,
|
||||||
reconnect and "no target node available" or "target not found")
|
reconnect and "no target node available" or "target not found")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue