autotest: add missing unpause_sitl() calls

This commit is contained in:
Peter Barker 2022-10-22 07:48:50 +11:00 committed by Peter Barker
parent cafce7671d
commit 6d19f77325
1 changed files with 2 additions and 0 deletions

View File

@ -2816,6 +2816,7 @@ class AutoTest(ABC):
this = mav.recv(1000000)
except Exception:
mav.autoreconnect = old_autoreconnect
self.unpause_SITL()
raise
if len(this) == 0:
break
@ -2855,6 +2856,7 @@ class AutoTest(ABC):
receive_result = mav.recv_msg()
except Exception:
mav.autoreconnect = True
self.unpause_SITL()
raise
if receive_result is None:
break