diff 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
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0065.py	Fri Oct 07 11:19:15 2011 +0200
+++ b/src/plugins/plugin_xep_0065.py	Fri Oct 07 12:09:48 2011 +0200
@@ -668,6 +668,7 @@
             self.sendNotAcceptableError(iq_elt['id'], iq_elt['from'], xmlstream)
             return
 
+        self.current_stream[sid]['timer'].cancel()
         self.current_stream[sid]["to"] = jid.JID(iq_elt["to"])
         self.current_stream[sid]["xmlstream"] = xmlstream