From 610d0e90530d4ffd1fcdd46299233890ada9880a Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Mon, 12 Feb 2018 13:18:21 -0800 Subject: [PATCH] Look for better link than high latency --- src/Vehicle/Vehicle.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 3221728ad..ca36a1dd8 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -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; + } } } -- 2.22.0