Skip to content

Commit

Permalink
🐛 invalidate background_frame_read when calling streamoff
Browse files Browse the repository at this point in the history
  • Loading branch information
M4GNV5 committed Jun 9, 2023
1 parent 85e3155 commit 96c0dd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions djitellopy/tello.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,10 @@ def streamoff(self):
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.
"""
Expand Down

0 comments on commit 96c0dd7

Please sign in to comment.