summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0199.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-04-07 23:10:32 -0700
committerNathan Fritz <nathan@andyet.net>2010-04-07 23:10:32 -0700
commitecd5a172ed49cbdf69cb3eaf0786fd18d801ee65 (patch)
treed41aebdee8c6e6ed58850c7de006e00e405b9ddb /sleekxmpp/plugins/xep_0199.py
parent935ee4d14e80899fa45bb3d9296e123f642cc413 (diff)
downloadslixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.gz
slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.bz2
slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.xz
slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.zip
replaced usage of deprecated iq result on send. Fixed old send result to use stanzas instead of ElementTree
Diffstat (limited to 'sleekxmpp/plugins/xep_0199.py')
-rw-r--r--sleekxmpp/plugins/xep_0199.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0199.py b/sleekxmpp/plugins/xep_0199.py
index 57d56c02..989e6450 100644
--- a/sleekxmpp/plugins/xep_0199.py
+++ b/sleekxmpp/plugins/xep_0199.py
@@ -62,7 +62,8 @@ class xep_0199(base.base_plugin):
ping = ET.Element('{http://www.xmpp.org/extensions/xep-0199.html#ns}ping')
iq.append(ping)
startTime = time.clock()
- pingresult = self.xmpp.send(iq, self.xmpp.makeIq(id), timeout)
+ #pingresult = self.xmpp.send(iq, self.xmpp.makeIq(id), timeout)
+ pingresult = iq.send()
endTime = time.clock()
if pingresult == False:
#self.xmpp.disconnect(reconnect=True)