autotest: correct reset of autoreconnect in case of exception

always true in practice
This commit is contained in:
Peter Barker 2022-08-26 13:04:29 +10:00 committed by Peter Barker
parent b6c4930b3a
commit 2e2ffbe4ac

View File

@ -2759,7 +2759,7 @@ class AutoTest(ABC):
try: try:
this = mav.recv(1000000) this = mav.recv(1000000)
except Exception: except Exception:
mav.autoreconnect = True mav.autoreconnect = old_autoreconnect
raise raise
if len(this) == 0: if len(this) == 0:
break break