diff options
author | Robert Gemmell <robbie@apache.org> | 2011-08-24 14:20:29 +0000 |
---|---|---|
committer | Robert Gemmell <robbie@apache.org> | 2011-08-24 14:20:29 +0000 |
commit | f773ec7c99d1401b33761b11c9a421e0d44c9450 (patch) | |
tree | 683f651af6592d91ce34f405fb41aeb9dacda16e | |
parent | 06f0f13f531c4cb659986bcd603dcc407db7730f (diff) | |
download | qpid-python-f773ec7c99d1401b33761b11c9a421e0d44c9450.tar.gz |
QPID-3450: use the loop index checking if a session id is already used
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1161110 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | python/qpid/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/client.py b/python/qpid/client.py index 45ce8498e8..5a877bb8d6 100644 --- a/python/qpid/client.py +++ b/python/qpid/client.py @@ -106,7 +106,7 @@ class Client: try: id = None for i in xrange(1, 64*1024): - if not self.sessions.has_key(id): + if not self.sessions.has_key(i): id = i break finally: |