Skip to content

Commit

Permalink
Fix race in 'BackgroundConsumer._thread_main'. (#8883)
Browse files Browse the repository at this point in the history
See #7817.
  • Loading branch information
tseaver authored Aug 1, 2019
1 parent a964956 commit 5c7246f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api_core/google/api_core/bidi.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def _thread_main(self, ready):
# In the future, we could use `Condition.wait_for` if we drop
# Python 2.7.
with self._wake:
if self._paused:
while self._paused:
_LOGGER.debug("paused, waiting for waking.")
self._wake.wait()
_LOGGER.debug("woken.")
Expand Down

0 comments on commit 5c7246f

Please sign in to comment.