diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index 1ac3d8b..2019b23 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