don't close the socket we're using to tranfer file. Fixes #8657
This commit is contained in:
parent
8b02b15176
commit
af547a1827
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ class Socks5(object):
|
||||||
pass
|
pass
|
||||||
self.file = None
|
self.file = None
|
||||||
# Close file we're receiving into
|
# Close file we're receiving into
|
||||||
if self.file_props.fd:
|
if self.file_props.fd and self.state >= 7:
|
||||||
try:
|
try:
|
||||||
self.file_props.fd.close()
|
self.file_props.fd.close()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Add table
Reference in a new issue