Skip to content

Commit

Permalink
fix(dl): fix logic errors
Browse files Browse the repository at this point in the history
- 修复 检查回调函数的逻辑错误
  • Loading branch information
txperl committed Mar 28, 2022
1 parent 6534023 commit ac943e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/plugin/do/dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ def __callback_check(self, this):
group_sign = this._dlArgs["@others"]["groupSign"]
if group_sign == "%not_last%":
return True
elif group_sign == "-1" and this.status(self.CORE.dl.mod.CODE_BAD):
self.STATIC.file.rm(this._dlSaveUri)
elif group_sign == "-1":
if this.status(self.CORE.dl.mod.CODE_BAD):
self.STATIC.file.rm(this._dlSaveUri)
else:
status_arr = ["running"]
while "running" in status_arr:
Expand Down

0 comments on commit ac943e2

Please sign in to comment.