Mercurial > libervia-backend
diff src/plugins/plugin_xep_0095.py @ 2129:6a66c8c5a567
core: replaced calls to client.xmlstream.send by client.send which is the right method to use. client.xmlstream should not be used directly
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 04 Feb 2017 17:59:13 +0100 |
parents | 2daf7b4c6756 |
children | 1d3f73e065e1 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0095.py Wed Feb 01 21:44:24 2017 +0100 +++ b/src/plugins/plugin_xep_0095.py Sat Feb 04 17:59:13 2017 +0100 @@ -109,7 +109,7 @@ 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 @@ 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: