Skip to content

Commit

Permalink
clean unneeded fields after close
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Dec 16, 2024
1 parent 6557619 commit d14a0c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google/api_core/bidi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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

self._thread = None
self._on_response = None

@property
def is_active(self):
Expand Down

0 comments on commit d14a0c6

Please sign in to comment.