plugins XEP-0047 and XEP-0065: timout bug fix
This commit is contained in:
parent
8484dbe56e
commit
6ce4febf19
2 changed files with 4 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -668,6 +668,7 @@ class XEP_0065():
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue