comparison src/plugins/plugin_xep_0234.py @ 1669:697effba0310

plugin pipe: rewritten plugin as a jingle application. The current implentation can, in some cases, block the backend, and is experimental only. Improvments are needed in the future.
author Goffi <goffi@goffi.org>
date Wed, 25 Nov 2015 02:04:43 +0100
parents 63cef4dbf2a4
children 27a140aa5023
comparison
equal deleted inserted replaced
1668:a9e86f660653 1669:697effba0310
319 # we are the sender, we send the checksum 319 # we are the sender, we send the checksum
320 self._sendCheckSum(session, content_name, content_data, profile) 320 self._sendCheckSum(session, content_name, content_data, profile)
321 content_data['file_obj'].close() 321 content_data['file_obj'].close()
322 322
323 def _finishedEb(self, failure, session, content_name, content_data, profile): 323 def _finishedEb(self, failure, session, content_name, content_data, profile):
324 log.warning(u"Error while streaming through s5b: {}".format(failure)) 324 log.warning(u"Error while streaming file: {}".format(failure))
325 content_data['file_obj'].close() 325 content_data['file_obj'].close()
326 self._j.contentTerminate(session, content_name, reason=self._j.REASON_FAILED_TRANSPORT, profile=profile) 326 self._j.contentTerminate(session, content_name, reason=self._j.REASON_FAILED_TRANSPORT, profile=profile)
327 327
328 328
329 class XEP_0234_handler(XMPPHandler): 329 class XEP_0234_handler(XMPPHandler):