Skip to content

Conversation

daniel-sanche
Copy link
Contributor

Fixes #769

@daniel-sanche daniel-sanche requested review from a team as code owners December 16, 2024 22:23
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Dec 16, 2024
@@ -717,6 +719,7 @@ def stop(self):
_LOGGER.warning("Background thread did not exit.")

self._thread = None
self._on_response = None
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This assumes you can't restart an instance after it has been stopped. The test cases and docstrings point to that being the case, but it's not completely clear

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is a reasonable assumption given that resources should be cleaned up when close is called. Regardless, we'll publish a pre-release to get feedback on this change before publishing a normal release.

@@ -717,6 +719,7 @@ def stop(self):
_LOGGER.warning("Background thread did not exit.")

self._thread = None
self._on_response = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is a reasonable assumption given that resources should be cleaned up when close is called. Regardless, we'll publish a pre-release to get feedback on this change before publishing a normal release.

@parthea parthea merged commit c1b8afa into main Jan 22, 2025
42 checks passed
@parthea parthea deleted the fix_mem_leak branch January 22, 2025 21:46
@parthea
Copy link
Collaborator

parthea commented Jan 22, 2025

Thanks @daniel-sanche !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak in bidi resources
2 participants