Changeset 8902

Show
Ignore:
Timestamp:
10/11/07 18:48:28 (14 months ago)
Author:
asterix
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/connection_handlers.py

    r8901 r8902  
    464464 
    465465                if real_id[:3] == 'au_': 
    466                         gajim.socks5queue.send_file(file_props, self.name) 
     466                        if file_props['stopped']: 
     467                                self.remove_transfer(file_props) 
     468                        else: 
     469                                gajim.socks5queue.send_file(file_props, self.name) 
    467470                        raise common.xmpp.NodeProcessed 
    468471 
     
    486489 
    487490                else: 
    488                         gajim.socks5queue.send_file(file_props, self.name) 
     491                        if file_props['stopped']: 
     492                                self.remove_transfer(file_props) 
     493                        else: 
     494                                gajim.socks5queue.send_file(file_props, self.name) 
    489495                        if file_props.has_key('fast'): 
    490496                                fasts = file_props['fast']