Skip to content

Conversation

@aydnOktay
Copy link
Contributor

While reviewing provider cleanup methods, I noticed that ZenohListenerProvider.stop() was calling session.close() without any exception handling, which could cause the provider to crash if the session close operation fails. I also noticed the docstring incorrectly mentioned stopping a background thread when no thread actually exists in this provider. I've added proper try-except-finally error handling similar to ContextProvider , ensuring that exceptions during session closure are caught and logged, and the session is always set to None in the finally block for proper cleanup. The docstring has also been corrected to accurately reflect what the method does

@aydnOktay aydnOktay requested review from a team as code owners January 30, 2026 11:06
@github-actions github-actions bot added robotics Robotics code changes python Python code tests Test files labels Jan 30, 2026
@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@0xbyt4
Copy link
Collaborator

0xbyt4 commented Feb 10, 2026

Hi @aydnOktay can you fix lint errors

@aydnOktay
Copy link
Contributor Author

Hi @aydnOktay can you fix lint errors

done sir , check pls @0xbyt4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python code robotics Robotics code changes tests Test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants