Commit ff9b4906 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

default-routes.lua: add missing break in best route selection logic

Fixes #86
parent 0ee144a4
......@@ -266,6 +266,7 @@ function findBestRoute(dev_info, device_id)
if ri.direction == "Output" and ri.available ~= ri.prev_available then
best_avail = ri = true
elseif ri.available == "yes" then
if (best_avail == nil or ri.priority > best_avail.priority) then
best_avail = ri
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment