Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
-
af547a18
by Yann Leboulanger at 2017-08-12T14:40:26+02:00
1 changed file:
Changes:
| ... | ... | @@ -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:
|