diff options
author | Lance Stout <lancestout@gmail.com> | 2011-07-27 18:40:57 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-07-27 18:40:57 -0700 |
commit | ad032e5ed77cfd1ec354e68e49d755e004408d0e (patch) | |
tree | 4b98af716376ef5a5feef74a6a2e138e7d4190f9 /sleekxmpp/clientxmpp.py | |
parent | 45412fd404157d4afc1d08eb5b785b94a55e957c (diff) | |
download | slixmpp-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'
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r-- | sleekxmpp/clientxmpp.py | 2 |
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 |