Skip to content
Snippets Groups Projects
Commit 314d3e8a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[kingshivan] really cancel canceled file transfers. fixes #3366

parent 34f04c69
No related branches found
No related tags found
No related merge requests found
......@@ -463,7 +463,10 @@ class ConnectionBytestream:
raise common.xmpp.NodeProcessed
if real_id[:3] == 'au_':
gajim.socks5queue.send_file(file_props, self.name)
if file_props['stopped']:
self.remove_transfer(file_props)
else:
gajim.socks5queue.send_file(file_props, self.name)
raise common.xmpp.NodeProcessed
proxy = None
......@@ -485,7 +488,10 @@ class ConnectionBytestream:
raise common.xmpp.NodeProcessed
else:
gajim.socks5queue.send_file(file_props, self.name)
if file_props['stopped']:
self.remove_transfer(file_props)
else:
gajim.socks5queue.send_file(file_props, self.name)
if file_props.has_key('fast'):
fasts = file_props['fast']
if len(fasts) > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment