Skip to content

Commit

Permalink
fix: close logfd to save error log when errored (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywb94 authored and fffonion committed May 25, 2018
1 parent 5479aef commit 7865573
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swjsq.py
Expand Up @@ -362,6 +362,7 @@ def run(self, uname, pwd, save=True):
failed = False
break
if failed:
logfd.close()
os._exit(1)
print('Login xunlei succeeded')

Expand Down

0 comments on commit 7865573

Please sign in to comment.