Commit 610d0e90 authored by DonLakeFlyer's avatar DonLakeFlyer

Look for better link than high latency

parent 5280b8a6
......@@ -1500,8 +1500,11 @@ void Vehicle::_updatePriorityLink(void)
// Check for the existing priority link to still be valid
for (int i=0; i<_links.count(); i++) {
if (_priorityLink.data() == _links[i]) {
// Still valid
return;
if (!_priorityLink.data()->highLatency()) {
// Link is still valid. Continue to use it unless it is high latency. In that case we still look for a better
// link to use as priority link.
return;
}
}
}
......
Markdown is supported
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