From 259dffeb6e4da0b879784ae9642f43c01b95811b Mon Sep 17 00:00:00 2001 From: Tom Nichols Date: Tue, 6 Jul 2010 14:16:46 -0400 Subject: send now has a priority and an 'init' parameter to denote stanzas that may be sent prior to session establishment. --- sleekxmpp/stanza/iq.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sleekxmpp/stanza') diff --git a/sleekxmpp/stanza/iq.py b/sleekxmpp/stanza/iq.py index 26f09268..2b3ca83b 100644 --- a/sleekxmpp/stanza/iq.py +++ b/sleekxmpp/stanza/iq.py @@ -67,11 +67,11 @@ class Iq(RootStanza): self.xml.remove(child) return self - def send(self, block=True, timeout=10, priority=False): + def send(self, block=True, timeout=10, priority=5, init=False): if block and self['type'] in ('get', 'set'): waitfor = Waiter('IqWait_%s' % self['id'], MatcherId(self['id'])) self.stream.registerHandler(waitfor) - StanzaBase.send(self, priority) + StanzaBase.send(self, priority, init) return waitfor.wait(timeout) else: - return StanzaBase.send(self, priority) + return StanzaBase.send(self, priority, init) -- cgit v1.2.3