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

This commit is contained in:
Yann Leboulanger 2007-10-11 16:48:28 +00:00
parent 34f04c69b7
commit 314d3e8a81
1 changed files with 8 additions and 2 deletions

View File

@ -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: