From e4f0d5f9e0ac69166c3b015585fdb6274b9c2430 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Fri, 12 Jan 2018 11:13:34 -0800 Subject: [PATCH] No comm timeout on high latency links --- src/Vehicle/Vehicle.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 0bf717870..d983ceca4 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -2066,6 +2066,11 @@ void Vehicle::setConnectionLostEnabled(bool connectionLostEnabled) void Vehicle::_connectionLostTimeout(void) { + if (highLatencyLink()) { + // No connection timeout on high latency links + return; + } + if (_connectionLostEnabled && !_connectionLost) { _connectionLost = true; _heardFrom = false; -- 2.22.0