diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-04 18:24:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-04 18:24:38 +0900 |
| commit | 0cdfc3d104cf02a310e8a8ed2f3e6f4d397a9e21 (patch) | |
| tree | 454ef7b6d9cae1f5988e600f31db0af8924413d2 /src/SessionSerializer.cc | |
| parent | 567b4249079051e0c61e9a587f020b993aff829c (diff) | |
Call RequestGroupMan::removeStoppedGroup() in
DownloadEngine::onEndOfRun() to process RequestGroup objects currently
in-progress.
With this change, --on-download-stop/error/complete hooks are properly
called for in-progress downloads when Ctrl-C is pressed.
Diffstat (limited to 'src/SessionSerializer.cc')
| -rw-r--r-- | src/SessionSerializer.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/SessionSerializer.cc b/src/SessionSerializer.cc index 9001dbe6..886f610d 100644 --- a/src/SessionSerializer.cc +++ b/src/SessionSerializer.cc @@ -184,18 +184,6 @@ void SessionSerializer::save(std::ostream& out) const } } } - if(saveInProgress_) { - const std::deque<SharedHandle<RequestGroup> >& groups = - rgman_->getRequestGroups(); - for(std::deque<SharedHandle<RequestGroup> >::const_iterator itr = - groups.begin(), eoi = groups.end(); itr != eoi; ++itr) { - SharedHandle<DownloadResult> result = (*itr)->createDownloadResult(); - if(result->result == error_code::FINISHED) { - continue; - } - writeDownloadResult(out, metainfoCache, result); - } - } if(saveWaiting_) { const std::deque<SharedHandle<RequestGroup> >& groups = rgman_->getReservedGroups(); |
