Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2010-07-07 00:11:43 +0400
committerYann Leboulanger <asterix@lagaule.org>2010-07-07 00:11:43 +0400
commitdd38dcee5e26fffc0df057399fa0c1533eb9832b (patch)
tree560f9506d318ab7050f5d821c04427dcc6cb0d34
parent370c2ba2e67c676912fe52d9fddce13c2d29a3f7 (diff)
don't send a canceld filetransfer. Fixes #3586
-rw-r--r--src/common/protocol/bytestream.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/protocol/bytestream.py b/src/common/protocol/bytestream.py
index c4f5578ea..8277ed710 100644
--- a/src/common/protocol/bytestream.py
+++ b/src/common/protocol/bytestream.py
@@ -596,7 +596,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
raise xmpp.NodeProcessed
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)
else:
gajim.socks5queue.send_file(file_props, self.name)
@@ -608,6 +608,9 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
if proxyhost['jid'] == jid:
proxy = proxyhost
+ if 'stopped' in file_props and file_props['stopped']:
+ self.remove_transfer(file_props)
+ raise xmpp.NodeProcessed
if proxy is not None:
file_props['streamhost-used'] = True
if 'streamhosts' not in file_props:
@@ -622,10 +625,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
raise xmpp.NodeProcessed
else:
- if 'stopped' in file_props and 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)
if 'fast' in file_props:
fasts = file_props['fast']
if len(fasts) > 0: