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 | b37021d7808766e4529dd14830be0309c0dfa473 (patch) | |
| tree | 683f651af6592d91ce34f405fb41aeb9dacda16e /python | |
| parent | f2f58c027421aab6e11b12569837ab65bb7e8132 (diff) | |
| download | qpid-python-b37021d7808766e4529dd14830be0309c0dfa473.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
Diffstat (limited to 'python')
| -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: |
