Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

gemenerik
Copy link
Member

  • Close RadioDriverThread upon failed reset to bootload

This change ensures the radio link is properly closed when reset_to_bootloader times out (e.g., Crazyflie is off), preventing accumulation of RadioDriverThread instances on repeated failures.

  • Close IncomingPacketHandlerThread upon link closure

Ensures IncomingPacketHandler threads are stopped and replaced when the link is closed, preserving callbacks for reconnects.

  • Close link upon failed open link attempt with SyncCrazyflie

Ensures link is fully closed upon failed attempt to open link


Together, these changes address much of #554. Still, more underlying issues remain. Addressing them fully will require deeper refactoring rather than patch-level fixes.

@gemenerik gemenerik requested a review from ataffanel August 27, 2025 12:17
@gemenerik gemenerik self-assigned this Aug 27, 2025
Copy link
Member

@ataffanel ataffanel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely a step in the good direction!

@ataffanel ataffanel merged commit ca6fbfb into master Aug 27, 2025
1 check passed
@ataffanel ataffanel deleted the rik/close_threads branch August 27, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants