static-endpoints: avoid capturing session item reference in the activate closure

This commit is contained in:
George Kiagiadakis 2021-04-12 16:04:34 +03:00
parent 45e0ad1092
commit 7d65dc2a09

View file

@ -24,8 +24,8 @@ function createEndpoint (factory_name, properties)
-- activate and register endpoint
ep:activate (Features.ALL, function (item)
ep:register ()
Log.info(ep, "registered endpoint " .. properties.name)
item:register ()
Log.info(item, "registered endpoint " .. properties.name)
end)
end