Yann Leboulanger pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/socks5.py
    ... ... @@ -585,7 +585,7 @@ class Socks5(object):
    585 585
                         pass
    
    586 586
                 self.file = None
    
    587 587
             # Close file we're receiving into
    
    588
    -        if self.file_props.fd:
    
    588
    +        if self.file_props.fd and self.state >= 7:
    
    589 589
                 try:
    
    590 590
                     self.file_props.fd.close()
    
    591 591
                 except Exception: