don't close the socket we're using to tranfer file. Fixes #8657

This commit is contained in:
Yann Leboulanger 2017-08-12 14:40:26 +02:00
parent 8b02b15176
commit af547a1827
1 changed files with 1 additions and 1 deletions

View File

@ -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: