summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-07-27 18:40:57 -0700
committerLance Stout <lancestout@gmail.com>2011-07-27 18:40:57 -0700
commitad032e5ed77cfd1ec354e68e49d755e004408d0e (patch)
tree4b98af716376ef5a5feef74a6a2e138e7d4190f9
parent45412fd404157d4afc1d08eb5b785b94a55e957c (diff)
downloadslixmpp-ad032e5ed77cfd1ec354e68e49d755e004408d0e.tar.gz
slixmpp-ad032e5ed77cfd1ec354e68e49d755e004408d0e.tar.bz2
slixmpp-ad032e5ed77cfd1ec354e68e49d755e004408d0e.tar.xz
slixmpp-ad032e5ed77cfd1ec354e68e49d755e004408d0e.zip
Fix error with DNS selection.
Missed a renaming of 'priority' to 'item'
-rw-r--r--sleekxmpp/clientxmpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py
index 1ac3d8bd..2019b239 100644
--- a/sleekxmpp/clientxmpp.py
+++ b/sleekxmpp/clientxmpp.py
@@ -183,7 +183,7 @@ class ClientXMPP(BaseXMPP):
picked = random.randint(0, intmax)
for item in items:
- if picked <= priority:
+ if picked <= item:
address = addresses[item]
break