comparison src/plugins/plugin_xep_0065.py @ 403:c513328ade9d

plugins XEP-0047 and XEP-0065: timout bug fix
author Goffi <goffi@goffi.org>
date Fri, 07 Oct 2011 12:09:48 +0200
parents cb0285372818
children cf005701624b
comparison
equal deleted inserted replaced
402:f03688bdb858 403:c513328ade9d
666 if not sid in self.current_stream: 666 if not sid in self.current_stream:
667 warning(_("Ignoring unexpected BS transfer: %s" % sid)) 667 warning(_("Ignoring unexpected BS transfer: %s" % sid))
668 self.sendNotAcceptableError(iq_elt['id'], iq_elt['from'], xmlstream) 668 self.sendNotAcceptableError(iq_elt['id'], iq_elt['from'], xmlstream)
669 return 669 return
670 670
671 self.current_stream[sid]['timer'].cancel()
671 self.current_stream[sid]["to"] = jid.JID(iq_elt["to"]) 672 self.current_stream[sid]["to"] = jid.JID(iq_elt["to"])
672 self.current_stream[sid]["xmlstream"] = xmlstream 673 self.current_stream[sid]["xmlstream"] = xmlstream
673 674
674 if not streamhost_elts: 675 if not streamhost_elts:
675 warning(_("No streamhost found in stream query %s" % sid)) 676 warning(_("No streamhost found in stream query %s" % sid))