Yann Leboulanger pushed to branch master at gajim / gajim

Commits:
af547a18 by Yann Leboulanger at 2017-08-12T14:40:26+02:00
don't close the socket we're using to tranfer file. Fixes #8657

- - - - -


1 changed file:

- gajim/common/socks5.py


Changes:

=====================================
gajim/common/socks5.py
=====================================
--- 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:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/af547a1827a1fd8e8b408912426e68367ce59579

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/af547a1827a1fd8e8b408912426e68367ce59579
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to