device/state-routes.lua: fix finding stored routes

This wrongly stored the matched route in a new variable instead of the
locally declared variable it supposed to use.
This commit is contained in:
Duncan Overbruck
2023-06-23 13:11:18 +02:00
parent 7eb6ff3b9e
commit 760ce55de1

View File

@@ -67,7 +67,7 @@ find_stored_routes_hook = SimpleEventHook {
if cutils.arrayContains (ri.devices, tonumber (device_id)) and
(ri.profiles == nil or cutils.arrayContains (ri.profiles, dev_info.active_profile)) and
cutils.arrayContains (spr, ri.name) then
route = ri
route_info = ri
break
end
end