fix(transfer): 修复目录监控下意外删除未完成种子的问题

- 如果种子尚未下载完成,则直接返回 False
This commit is contained in:
Attente
2025-08-06 23:13:01 +08:00
parent 426e920fff
commit 1f6dc93ea3
2 changed files with 6 additions and 1 deletions

View File

@@ -1450,6 +1450,10 @@ class TransferChain(ChainBase, metaclass=Singleton):
if not torrents:
return False
# 未下载完成
if torrents[0].progress < 100:
return False
# 获取种子文件列表
torrent_files = self.torrent_files(download_hash, downloader)
if not torrent_files: