🐛 invalidate background_frame_read when calling streamoff

This commit is contained in:
Jakob Löw
2023-06-09 18:11:22 +02:00
parent 85e315579b
commit 96c0dd7c64

View File

@@ -601,6 +601,10 @@ class Tello:
self.send_control_command("streamoff")
self.stream_on = False
if self.background_frame_read is not None:
self.background_frame_read.stop()
self.background_frame_read = None
def emergency(self):
"""Stop all motors immediately.
"""