mirror of https://github.com/cloudreve/Cloudreve
fix(arai2): cannot select file back after unselected (#2386)
parent
acffd984c1
commit
1a3c3311e6
|
@ -593,7 +593,7 @@ func (d *dependency) RemoteDownloadQueue(ctx context.Context) queue.Queue {
|
|||
queue.WithName("RemoteDownloadQueue"),
|
||||
queue.WithMaxTaskExecution(queueSetting.MaxExecution),
|
||||
queue.WithResumeTaskType(queue.RemoteDownloadTaskType),
|
||||
queue.WithTaskPullInterval(20*time.Second),
|
||||
queue.WithTaskPullInterval(10*time.Second),
|
||||
)
|
||||
return d.remoteDownloadQueue
|
||||
}
|
||||
|
|
|
@ -245,6 +245,8 @@ func (a *aria2Client) SetFilesToDownload(ctx context.Context, handle *downloader
|
|||
for _, arg := range args {
|
||||
if !arg.Download {
|
||||
delete(selected, arg.Index)
|
||||
} else {
|
||||
selected[arg.Index] = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue