Update retry frequency

This commit is contained in:
Changhua 2023-12-07 00:06:34 +08:00
parent 4ef96205e6
commit 0c55850ff7

View File

@ -805,11 +805,11 @@ class Wcf():
self.LOG.error(f"下载失败") self.LOG.error(f"下载失败")
return "" return ""
cnt = 0 cnt = 0
while cnt < 2 * timeout: while cnt < timeout:
path = self.decrypt_image(extra, dir) path = self.decrypt_image(extra, dir)
if path: if path:
return path return path
sleep(0.5) sleep(1)
cnt += 1 cnt += 1
self.LOG.error(f"下载超时") self.LOG.error(f"下载超时")