commit | 30616fa719f8857b7905ab8ce1b590b55ced6b6e | [log] [tgz] |
---|---|---|
author | Tres Seaver <tseaver@palladion.com> | Thu Aug 01 17:05:45 2019 -0400 |
committer | GitHub <noreply@github.com> | Thu Aug 01 17:05:45 2019 -0400 |
tree | c5f34c376ef94399c22603ae7a70a1cae39c52d8 | |
parent | 478364855b644f320d24e16204e0a789f0ccff1f [diff] |
Fix race in 'BackgroundConsumer._thread_main'. (#8883) See #7817.
diff --git a/google/api_core/bidi.py b/google/api_core/bidi.py index 1fab26b..f73c7c9 100644 --- a/google/api_core/bidi.py +++ b/google/api_core/bidi.py
@@ -642,7 +642,7 @@ # 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.")