fix 下载

This commit is contained in:
Theluyuan 2023-06-15 10:45:32 +08:00
parent 00a5eb7c9c
commit cb4b4db6b8

View File

@ -43,12 +43,12 @@ function startDown(){
let name = dowloadlist[0].title let name = dowloadlist[0].title
clientList.forEach((i)=>{ clientList.forEach((i)=>{
i.send(isok ? `${name}下载完成` : data ) i.send(isok ? `${name}下载完成` : data )
})
if(isok){ if(isok){
dowloadlist.shift() dowloadlist.shift()
start = false start = false
} }
}) })
})
} }
setInterval(()=>{ setInterval(()=>{
if(dowloadlist.length != 0 && !start){ if(dowloadlist.length != 0 && !start){