plugins XEP-0047 and XEP-0065: timout bug fix

This commit is contained in:
Goffi 2011-10-07 12:09:48 +02:00
commit 6ce4febf19

View file

@ -296,6 +296,9 @@ class XEP_0047():
self.terminateStream(sid, "IQ_ERROR")
return
if data['timer'].active():
data['timer'].cancel()
buffer = data["file_obj"].read(data["block_size"])
if buffer:
next_iq_elt = client.IQ(data["xmlstream"],'set')