replaced usage of deprecated iq result on send. Fixed old send result to use stanzas instead of ElementTree
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user