Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0085.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 | 19b9d3f8a6c7 |
children | 1d3f73e065e1 |
comparison
equal
deleted
inserted
replaced
2128:aa94f33fd2ad | 2129:6a66c8c5a567 |
---|---|
371 'subject': {}, | 371 'subject': {}, |
372 'extra': {}, | 372 'extra': {}, |
373 } | 373 } |
374 self.host.generateMessageXML(mess_data) | 374 self.host.generateMessageXML(mess_data) |
375 mess_data['xml'].addElement(state, NS_CHAT_STATES) | 375 mess_data['xml'].addElement(state, NS_CHAT_STATES) |
376 client.xmlstream.send(mess_data['xml']) | 376 client.send(mess_data['xml']) |
377 | 377 |
378 self.state = state | 378 self.state = state |
379 try: | 379 try: |
380 self.timer.cancel() | 380 self.timer.cancel() |
381 except (internet_error.AlreadyCalled, AttributeError): | 381 except (internet_error.AlreadyCalled, AttributeError): |