Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDK-2404 - prevent panic in close_sync #35

Merged
merged 3 commits into from
Mar 22, 2023

Conversation

stuqdog
Copy link
Member

@stuqdog stuqdog commented Mar 21, 2023

In at least one known case (attempting to connect to a robot that is offline), close_sync panics when attempting to create a new thread. This PR causes to catch the panic and return it as an error instead.

@stuqdog stuqdog requested a review from a team as a code owner March 21, 2023 14:51
@stuqdog stuqdog requested review from njooma and npmenard March 21, 2023 14:52
@stuqdog stuqdog changed the title prevent panic in close_sync RSDK-2404 prevent panic in close_sync Mar 21, 2023
@stuqdog stuqdog changed the title RSDK-2404 prevent panic in close_sync RSDK-2404 - prevent panic in close_sync Mar 21, 2023
Copy link
Member

@njooma njooma left a comment

Choose a reason for hiding this comment

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

srtm

Copy link
Member

@npmenard npmenard left a comment

Choose a reason for hiding this comment

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

LGTM

@stuqdog stuqdog merged commit 6dd19cc into viamrobotics:main Mar 22, 2023
@stuqdog stuqdog deleted the offline-robot-panic-fix branch March 22, 2023 13:10
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.

3 participants