diff options
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index dd6e91d37b..238a5c4508 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -232,6 +232,7 @@ class _Condition(_Verbose): try: # restore state no matter what (e.g., KeyboardInterrupt) if timeout is None: waiter.acquire() + gotit = True if __debug__: self._note("%s.wait(): got it", self) else: @@ -249,6 +250,7 @@ class _Condition(_Verbose): else: if __debug__: self._note("%s.wait(%s): got it", self, timeout) + return gotit finally: self._acquire_restore(saved_state) |