diff --git a/src/scripts/policy-endpoint-device.lua b/src/scripts/policy-endpoint-device.lua index 2bf8f88d..04e3bc62 100644 --- a/src/scripts/policy-endpoint-device.lua +++ b/src/scripts/policy-endpoint-device.lua @@ -97,7 +97,7 @@ function createLink (si_ep, si_target) si_link:activate (Feature.SessionItem.ACTIVE, function (l, e) if e then Log.warning (l, "failed to activate si-standard-link: " .. tostring(e)) - si_link:remove () + l:remove () else Log.info (l, "activated si-standard-link") end diff --git a/src/scripts/policy-node.lua b/src/scripts/policy-node.lua index e982a09d..55264d27 100644 --- a/src/scripts/policy-node.lua +++ b/src/scripts/policy-node.lua @@ -66,7 +66,7 @@ function createLink (si, si_target, passthrough, exclusive) si_link:activate (Feature.SessionItem.ACTIVE, function (l, e) if e then Log.warning (l, "failed to activate si-standard-link: " .. tostring(e)) - si_link:remove () + l:remove () else Log.info (l, "activated si-standard-link") end