diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-04-18 18:09:38 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-04-18 18:09:38 +0000 |
commit | 4e20d749dbde6eabf6bbb78f2eb543af81db949c (patch) | |
tree | e7739f3aaabea549b7cee2cb80e019cf3980ac12 /python/qpid/util.py | |
parent | 1ffdff37fe513d22089e586940a9475ccba108ac (diff) | |
download | qpid-python-4e20d749dbde6eabf6bbb78f2eb543af81db949c.tar.gz |
used timed wait to improve debugability
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@766369 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/util.py')
-rw-r--r-- | python/qpid/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/qpid/util.py b/python/qpid/util.py index bb7f5090df..f4b613f4e5 100644 --- a/python/qpid/util.py +++ b/python/qpid/util.py @@ -50,7 +50,9 @@ def wait(condition, predicate, timeout=None): start = time.time() while not predicate(): if timeout is None: - condition.wait() + # using the timed wait prevents keyboard interrupts from being + # blocked while waiting + condition.wait(3) elif passed < timeout: condition.wait(timeout - passed) else: |