core: replaced calls to client.xmlstream.send by client.send which is the right method to use. client.xmlstream should not be used directly

This commit is contained in:
Goffi 2017-02-04 17:59:13 +01:00
commit 6467bdb3c3
14 changed files with 54 additions and 58 deletions

View file

@ -109,7 +109,7 @@ class XEP_0095(object):
if si_condition is not None:
iq_error_elt.error.addElement((NS_SI, si_condition))
client.xmlstream.send(iq_error_elt)
client.send(iq_error_elt)
def acceptStream(self, iq_elt, feature_elt, misc_elts=None, profile=C.PROF_KEY_NONE):
"""Send the accept stream initiation answer
@ -128,7 +128,7 @@ class XEP_0095(object):
si_elt.addChild(feature_elt)
for elt in misc_elts:
si_elt.addChild(elt)
client.xmlstream.send(result_elt)
client.send(result_elt)
def _parseOfferResult(self, iq_elt):
try: