We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2790089 commit c377b3cCopy full SHA for c377b3c
1 file changed
pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py
@@ -151,7 +151,10 @@ def close(self):
151
# Stop consuming messages.
152
self._request_queue.put(_helper_threads.STOP)
153
self._dispatch_thread.join() # Wait until stopped.
154
+ self._dispatch_thread = None
155
self._consumer.stop_consuming()
156
+ self._leases_thread.join()
157
+ self._leases_thread = None
158
self._executor.shutdown()
159
160
# The subscription is closing cleanly; resolve the future if it is not
0 commit comments