[kingshivan] really cancel canceled file transfers. fixes #3366
This commit is contained in:
parent
34f04c69b7
commit
314d3e8a81
1 changed files with 8 additions and 2 deletions
|
@ -463,6 +463,9 @@ class ConnectionBytestream:
|
||||||
raise common.xmpp.NodeProcessed
|
raise common.xmpp.NodeProcessed
|
||||||
|
|
||||||
if real_id[:3] == 'au_':
|
if real_id[:3] == 'au_':
|
||||||
|
if file_props['stopped']:
|
||||||
|
self.remove_transfer(file_props)
|
||||||
|
else:
|
||||||
gajim.socks5queue.send_file(file_props, self.name)
|
gajim.socks5queue.send_file(file_props, self.name)
|
||||||
raise common.xmpp.NodeProcessed
|
raise common.xmpp.NodeProcessed
|
||||||
|
|
||||||
|
@ -484,6 +487,9 @@ class ConnectionBytestream:
|
||||||
gajim.socks5queue.on_success = self._proxy_auth_ok
|
gajim.socks5queue.on_success = self._proxy_auth_ok
|
||||||
raise common.xmpp.NodeProcessed
|
raise common.xmpp.NodeProcessed
|
||||||
|
|
||||||
|
else:
|
||||||
|
if file_props['stopped']:
|
||||||
|
self.remove_transfer(file_props)
|
||||||
else:
|
else:
|
||||||
gajim.socks5queue.send_file(file_props, self.name)
|
gajim.socks5queue.send_file(file_props, self.name)
|
||||||
if file_props.has_key('fast'):
|
if file_props.has_key('fast'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue