8000 Fix race in 'BackgroundConsumer._thread_main'. (#8883) · software-dov/python-api-core@30616fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 30616fa

Browse files
authored
Fix race in 'BackgroundConsumer._thread_main'. (#8883)
See #7817.
1 parent 4783648 commit 30616fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/api_core/bidi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def _thread_main(self, ready):
642642
# In the future, we could use `Condition.wait_for` if we drop
643643
# Python 2.7.
644644
with self._wake:
645-
if self._paused:
645+
while self._paused:
646646
_LOGGER.debug("paused, waiting for waking.")
647647
self._wake.wait()
648648
_LOGGER.debug("woken.")

0 commit comments

Comments
 (0)
0