fix(offline_download): don't wait for transfer task (close #5595)

This commit is contained in:
Andy Hsu
2023-12-03 14:20:01 +08:00
parent e4a6b758dc
commit 8bdfc7ac8e
2 changed files with 1 additions and 17 deletions

View File

@ -11,20 +11,17 @@ import (
"github.com/xhofe/tache"
"os"
"path/filepath"
"sync"
)
type TransferTask struct {
tache.Base
file File
dstDirPath string
wg *sync.WaitGroup
tempDir string
deletePolicy DeletePolicy
}
func (t *TransferTask) Run() error {
defer t.wg.Done()
// check dstDir again
storage, dstDirActualPath, err := op.GetStorageAndActualPath(t.dstDirPath)
if err != nil {