summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2011-08-24 14:20:29 +0000
committerRobert Gemmell <robbie@apache.org>2011-08-24 14:20:29 +0000
commit5db76645c94c776eea311f2491edd3585fd4fe11 (patch)
tree7f344791486aab3c05ff51b7a914cb81f42245dd /qpid/python
parent9c3074276151468c2b797865686235ad29afb76a (diff)
downloadqpid-python-5db76645c94c776eea311f2491edd3585fd4fe11.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@1161110 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/qpid/client.py b/qpid/python/qpid/client.py
index 45ce8498e8..5a877bb8d6 100644
--- a/qpid/python/qpid/client.py
+++ b/qpid/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: