- Notifications
You must be signed in to change notification settings - Fork90
fix: memory leak in bidi classes#770
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -306,6 +306,8 @@ def close(self): | ||
self._request_queue.put(None) | ||
self.call.cancel() | ||
self._request_generator = None | ||
self._initial_request = None | ||
self._callbacks = [] | ||
# Don't set self.call to None. Keep it around so that send/recv can | ||
# raise the error. | ||
@@ -717,6 +719,7 @@ def stop(self): | ||
_LOGGER.warning("Background thread did not exit.") | ||
self._thread = None | ||
self._on_response = None | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
@property | ||
def is_active(self): | ||
Uh oh!
There was an error while loading.Please reload this page.