From b0df0096c216e5f0ce6f8b6441c481c660f8f149 Mon Sep 17 00:00:00 2001 From: acfloria Date: Tue, 26 Jun 2018 18:12:39 +0200 Subject: [PATCH] Fix link fallback for multiple links --- src/Vehicle/Vehicle.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index cd12a2355..9dce5244b 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -2508,7 +2508,10 @@ void Vehicle::_linkActiveChanged(LinkInterface *link, bool active, int vehicleID 1); // Request protocol version } } else if (!active && !_connectionLost) { - if (_connectionLostEnabled) { + _updatePriorityLink(false /* updateActive */, false /* sendCommand */); + + // check if another active link has been found + if (link == _priorityLink) { _connectionLost = true; communicationLost = true; _heardFrom = false; -- 2.22.0