Commit 4d5f9591 authored by Julian Bouzas's avatar 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
...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment