policy-endpoint-device: Fix endpoints not connected with devices

-if device linkables are created ahead of the endpoints,
 endpoints are not connected with the devices.

-rescan the endpoints on an endpoint creation.
This commit is contained in:
Ashok Sidipotu
2022-03-02 06:55:37 +05:30
committed by George Kiagiadakis
parent 03c6fb0a86
commit 72f4f19cbf

View File

@@ -221,6 +221,10 @@ linkables_om:connect("objects-changed", function (om)
scheduleRescan ()
end)
endpoints_om:connect("object-added", function (om)
scheduleRescan ()
end)
linkables_om:connect("object-removed", function (om, si)
unhandleLinkable (si)
end)