summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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