diff options
author | Tom Nichols <tmnichols@gmail.com> | 2010-07-06 14:16:46 -0400 |
---|---|---|
committer | Tom Nichols <tmnichols@gmail.com> | 2010-07-06 14:16:46 -0400 |
commit | 259dffeb6e4da0b879784ae9642f43c01b95811b (patch) | |
tree | 495255dc66de2ff35f2fb0f0fb1f4aa0a55d4e13 /sleekxmpp/stanza | |
parent | 0a30e6c0175b13cef400d4cba27eaf145b07d365 (diff) | |
download | slixmpp-259dffeb6e4da0b879784ae9642f43c01b95811b.tar.gz slixmpp-259dffeb6e4da0b879784ae9642f43c01b95811b.tar.bz2 slixmpp-259dffeb6e4da0b879784ae9642f43c01b95811b.tar.xz slixmpp-259dffeb6e4da0b879784ae9642f43c01b95811b.zip |
send now has a priority and an 'init' parameter to denote stanzas that may be sent prior to session establishment.
Diffstat (limited to 'sleekxmpp/stanza')
-rw-r--r-- | sleekxmpp/stanza/iq.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |