autotest: correct reset of autoreconnect in case of exception
always true in practice
This commit is contained in:
parent
b6c4930b3a
commit
2e2ffbe4ac
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user