fix 重连机制

This commit is contained in:
jxxghp
2023-09-03 21:59:18 +08:00
parent bbc27bbe19
commit 7eb77875f1
10 changed files with 46 additions and 6 deletions

View File

@ -33,7 +33,7 @@ class TransmissionModule(_ModuleBase):
定时任务每10分钟调用一次
"""
# 定时重连
if not self.transmission.trc:
if not self.transmission.is_inactive():
self.transmission = Transmission()
def download(self, torrent_path: Path, download_dir: Path, cookie: str,