From 2e2ffbe4accccbfe8a50465dd09023b33ff1ad7e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 26 Aug 2022 13:04:29 +1000 Subject: [PATCH] autotest: correct reset of autoreconnect in case of exception always true in practice --- Tools/autotest/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 84c0dca3ed..a76861ea08 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -2759,7 +2759,7 @@ class AutoTest(ABC): try: this = mav.recv(1000000) except Exception: - mav.autoreconnect = True + mav.autoreconnect = old_autoreconnect raise if len(this) == 0: break