Skip to content

Commit

Permalink
chore: partial revert of PR #357
Browse files Browse the repository at this point in the history
This reverts commit e120a0c.
  • Loading branch information
parthea committed Nov 30, 2023
1 parent 3069ef4 commit 536c6d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion google/api_core/bidi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def _is_active(self):
# Note: there is a possibility that this starts *before* the call
# property is set. So we have to check if self.call is set before
# seeing if it's active.
return self.call is not None and self.call.is_active()
if self.call is not None and not self.call.is_active():
return False
else:
return True

def __iter__(self):
if self._initial_request is not None:
Expand Down

0 comments on commit 536c6d2

Please sign in to comment.