fix download contral

This commit is contained in:
jxxghp
2023-07-04 08:21:39 +08:00
parent 8adab8d645
commit fe7e84d5da
2 changed files with 4 additions and 4 deletions

View File

@ -555,11 +555,11 @@ class DownloadChain(ChainBase):
def set_downloading(self, hash_str, oper: str) -> bool:
"""
控制下载任务 start/pause
控制下载任务 start/stop
"""
if oper == "start":
return self.start_torrents(hashs=[hash_str])
elif oper == "pause":
elif oper == "stop":
return self.stop_torrents(hashs=[hash_str])
return False