Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix regression in bidi causing Thread-ConsumeBidirectionalStream caught unexpected exception and will exit #562

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

parthea
Copy link
Collaborator

@parthea parthea commented Nov 30, 2023

This reverts commit e120a0c

Fixes #560

@parthea parthea merged commit 40c8ae0 into main Dec 1, 2023
24 checks passed
@parthea parthea deleted the partial-revert-of-357 branch December 1, 2023 15:51
return self.call is not None and self.call.is_active()
# seeing if it's active. We need to return True if self.call is None.
# See https://github.com/googleapis/python-api-core/issues/560.
if self.call is not None and not self.call.is_active():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@parthea

It would be simpler and much clearer to have return self.call is None or self.call.is_active(). This is equivalent to what you have, by DeMorgan's theorem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in v2.13.0: ConsumeBidirectionalStream caught unexpected exception and will exit
3 participants