Skip to content

Commit d14a0c6

Browse files
committed
clean unneeded fields after close
1 parent 6557619 commit d14a0c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google/api_core/bidi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ def close(self):
306306
self._request_queue.put(None)
307307
self.call.cancel()
308308
self._request_generator = None
309+
self._initial_request = None
310+
self._callbacks = []
309311
# Don't set self.call to None. Keep it around so that send/recv can
310312
# raise the error.
311313

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

719721
self._thread = None
722+
self._on_response = None
720723

721724
@property
722725
def is_active(self):

0 commit comments

Comments
 (0)