diff options
author | Gordon Sim <gsim@apache.org> | 2014-01-24 12:38:13 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2014-01-24 12:38:13 +0000 |
commit | bee3b7927b5fcd401b4f5867b3069000ea35f727 (patch) | |
tree | f628ec204efdcc24058a508cebb0e33f8d775d97 /python | |
parent | cb329bfd3dc01e4c043d02baf82baa3cba7a3bdd (diff) | |
download | qpid-python-bee3b7927b5fcd401b4f5867b3069000ea35f727.tar.gz |
QPID-2294: add checks for negative timeout
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1560974 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r-- | python/qpid/compat.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/qpid/compat.py b/python/qpid/compat.py index ee3bf919ad..0753cb0461 100644 --- a/python/qpid/compat.py +++ b/python/qpid/compat.py @@ -54,7 +54,8 @@ class BaseWaiter: def wait(self, timeout=None): start = time.time() if timeout is not None: - while True: + ready = False + while timeout > 0: try: ready, _, _ = select([self], [], [], timeout) break |