From e8de4db52231855f903e2f05cd09cfc5aec32968 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sun, 16 Feb 2014 23:18:24 +0400 Subject: [PATCH] Free up queue as soon as we don't need it anymore. --- debian/remote.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/remote.go b/debian/remote.go index 71fd8a49..ae7941c5 100644 --- a/debian/remote.go +++ b/debian/remote.go @@ -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)