don't send a canceld filetransfer. Fixes #3586

This commit is contained in:
Yann Leboulanger 2010-07-06 22:11:43 +02:00
parent 370c2ba2e6
commit dd38dcee5e

View file

@ -596,7 +596,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
raise xmpp.NodeProcessed raise xmpp.NodeProcessed
if real_id.startswith('au_'): if real_id.startswith('au_'):
if 'stopped' in file and file_props['stopped']: if 'stopped' in file_props and file_props['stopped']:
self.remove_transfer(file_props) self.remove_transfer(file_props)
else: else:
gajim.socks5queue.send_file(file_props, self.name) gajim.socks5queue.send_file(file_props, self.name)
@ -608,6 +608,9 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
if proxyhost['jid'] == jid: if proxyhost['jid'] == jid:
proxy = proxyhost proxy = proxyhost
if 'stopped' in file_props and file_props['stopped']:
self.remove_transfer(file_props)
raise xmpp.NodeProcessed
if proxy is not None: if proxy is not None:
file_props['streamhost-used'] = True file_props['streamhost-used'] = True
if 'streamhosts' not in file_props: if 'streamhosts' not in file_props:
@ -622,10 +625,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
raise xmpp.NodeProcessed raise xmpp.NodeProcessed
else: else:
if 'stopped' in file_props and file_props['stopped']: gajim.socks5queue.send_file(file_props, self.name)
self.remove_transfer(file_props)
else:
gajim.socks5queue.send_file(file_props, self.name)
if 'fast' in file_props: if 'fast' in file_props:
fasts = file_props['fast'] fasts = file_props['fast']
if len(fasts) > 0: if len(fasts) > 0: