Free up queue as soon as we don't need it anymore.

This commit is contained in:
Andrey Smirnov
2014-02-16 23:18:24 +04:00
parent 47b3f3ed6a
commit e8de4db522
+3
View File
@@ -430,6 +430,9 @@ func (repo *RemoteRepo) Download(d utils.Downloader, packageCollection *PackageC
d.DownloadWithChecksum(repo.PackageURL(task.RepoURI).String(), task.DestinationPath, ch, task.Checksums, ignoreMismatch)
}
// We don't need queued after this point
queued = nil
// Wait for all downloads to finish
errors := make([]string, 0)