summaryrefslogtreecommitdiff
path: root/src/DownloadContext.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-10-31 21:53:24 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-10-31 21:53:24 +0900
commite2e711fba8b888ba3ce8b9e89c10399dba6d134b (patch)
tree7c1986483ffee116eb58df2634d0b114152845d2 /src/DownloadContext.cc
parent4532881eb6e910171c8b8d67ff81884913135b93 (diff)
Reuse in-flight and pooled URIs when a download is paused.
Diffstat (limited to 'src/DownloadContext.cc')
-rw-r--r--src/DownloadContext.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DownloadContext.cc b/src/DownloadContext.cc
index 3a47ed53..7f90627c 100644
--- a/src/DownloadContext.cc
+++ b/src/DownloadContext.cc
@@ -185,6 +185,7 @@ void DownloadContext::releaseRuntimeResource()
{
for(std::vector<SharedHandle<FileEntry> >::const_iterator i =
fileEntries_.begin(), eoi = fileEntries_.end(); i != eoi; ++i) {
+ (*i)->putBackRequest();
(*i)->releaseRuntimeResource();
}
}