FIx withoutTags option

This commit is contained in:
rumanzo 2022-04-01 02:37:13 +03:00
parent b304a20555
commit f9fbd89d5c

View File

@ -100,16 +100,14 @@ func HandleResumeItems(opts *options.Opts, resumeItems map[string]*utorrentStruc
}
}
}
wg.Add(1)
chans.BoundedChannel <- true
transferStruct := CreateEmptyNewTransferStructure()
transferStruct.ResumeItem = resumeItem
transferStruct.Replace = replaces
transferStruct.Opts = opts
go HandleResumeItem(key, &transferStruct, &chans, &wg)
} else {
totalJobs--
}
wg.Add(1)
chans.BoundedChannel <- true
transferStruct := CreateEmptyNewTransferStructure()
transferStruct.ResumeItem = resumeItem
transferStruct.Replace = replaces
transferStruct.Opts = opts
go HandleResumeItem(key, &transferStruct, &chans, &wg)
}
go func() {
wg.Wait()