Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julian Bouzas
WirePlumber
Commits
4d5f9591
Commit
4d5f9591
authored
Nov 03, 2021
by
Julian Bouzas
Browse files
policy-node: make sure 'taget.node' property has a valid Id before waiting
parent
ff9b4906
Pipeline
#438575
passed with stages
in 4 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/scripts/policy-node.lua
View file @
4d5f9591
...
@@ -347,7 +347,7 @@ function handleLinkable (si)
...
@@ -347,7 +347,7 @@ function handleLinkable (si)
-- this is because the client may have already "seen" a target that we haven't
-- this is because the client may have already "seen" a target that we haven't
-- yet prepared, which leads to a race condition
-- yet prepared, which leads to a race condition
local
si_id
=
si
.
id
local
si_id
=
si
.
id
if
si_props
[
"node.target"
]
if
si_props
[
"node.target"
]
and
si_props
[
"node.target"
]
~=
"-1"
and
not
si_target
and
not
si_target
and
not
si_flags
[
si_id
].
was_handled
and
not
si_flags
[
si_id
].
was_handled
and
not
si_flags
[
si_id
].
done_waiting
then
and
not
si_flags
[
si_id
].
done_waiting
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment