Unverified Commit d7790dd9 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6002 from DonLakeFlyer/HighLatencyTimeout

No comm timeout on high latency links
parents fee0d4d1 e4f0d5f9
...@@ -2066,6 +2066,11 @@ void Vehicle::setConnectionLostEnabled(bool connectionLostEnabled) ...@@ -2066,6 +2066,11 @@ void Vehicle::setConnectionLostEnabled(bool connectionLostEnabled)
void Vehicle::_connectionLostTimeout(void) void Vehicle::_connectionLostTimeout(void)
{ {
if (highLatencyLink()) {
// No connection timeout on high latency links
return;
}
if (_connectionLostEnabled && !_connectionLost) { if (_connectionLostEnabled && !_connectionLost) {
_connectionLost = true; _connectionLost = true;
_heardFrom = false; _heardFrom = false;
......
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