From af547a1827a1fd8e8b408912426e68367ce59579 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 12 Aug 2017 14:40:26 +0200 Subject: [PATCH] don't close the socket we're using to tranfer file. Fixes #8657 --- gajim/common/socks5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/common/socks5.py b/gajim/common/socks5.py index 1273e6486..3f609213d 100644 --- a/gajim/common/socks5.py +++ b/gajim/common/socks5.py @@ -585,7 +585,7 @@ class Socks5(object): pass self.file = None # Close file we're receiving into - if self.file_props.fd: + if self.file_props.fd and self.state >= 7: try: self.file_props.fd.close() except Exception: