state-routes: use the correct device id when restoring route properties

Fixes: #551
This commit is contained in:
George Kiagiadakis 2024-01-08 12:18:49 +02:00
parent 7bd4032a28
commit c5c5317599

View file

@ -218,7 +218,7 @@ store_or_restore_routes_hook = SimpleEventHook {
string.format ("new active route(%s) found of device(%s)",
route.name, dev_info.name))
selected_routes [tostring (device_id)] =
selected_routes [tostring (route.device)] =
Json.Object { index = route_info.index }:to_string ()
push_select_routes = true