[commit-gajim] r11249 - trunk/src/common
asterix at gajim.org
asterix at gajim.org
Wed Apr 29 09:46:24 CEST 2009
Author: asterix
Date: 2009-04-29 09:46:24 +0200 (Wed, 29 Apr 2009)
New Revision: 11249
Modified:
trunk/src/common/connection_handlers.py
Log:
close filtransfers when we get an offline presence, but only for this resource. Fixes #4980
Modified: trunk/src/common/connection_handlers.py
===================================================================
--- trunk/src/common/connection_handlers.py 2009-04-29 07:01:20 UTC (rev 11248)
+++ trunk/src/common/connection_handlers.py 2009-04-29 07:46:24 UTC (rev 11249)
@@ -112,13 +112,13 @@
for file_props in self.files_props.values():
if self.is_transfer_stopped(file_props):
continue
- receiver_jid = unicode(file_props['receiver']).split('/')[0]
- if contact.jid == receiver_jid:
+ receiver_jid = unicode(file_props['receiver'])
+ if contact.get_full_jid() == receiver_jid:
file_props['error'] = -5
self.remove_transfer(file_props)
self.dispatch('FILE_REQUEST_ERROR', (contact.jid, file_props, ''))
- sender_jid = unicode(file_props['sender']).split('/')[0]
- if contact.jid == sender_jid:
+ sender_jid = unicode(file_props['sender'])
+ if contact.get_full_jid() == sender_jid:
file_props['error'] = -3
self.remove_transfer(file_props)
More information about the Commits
mailing list