From ad032e5ed77cfd1ec354e68e49d755e004408d0e Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 27 Jul 2011 18:40:57 -0700 Subject: [PATCH] Fix error with DNS selection. Missed a renaming of 'priority' to 'item' --- sleekxmpp/clientxmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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