This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
fix(pubsub): handle None in on response callback (#9982)
If the underlying RPC is shut down while pulling the messages with a streming pull, the StreamingPullManager's _on_response() method is invoked with None (as opposed to a StreamingPullResponse instance). This commit handles this case and prevents an error in a background thread on streaming pull manager shutdown.
- Loading branch information
Showing 2 changed files with 22 additions and 0 deletions.