Fix bug that pause/unpause seeding torrent prevents new downloads from starting

Previously, with --bt-detach-seed-only, when user issued pause and
unpause command to seeding torrent, and it was started again, and it
immediately got seeding status, but aria2 did not start new download
waiting in the queue.  This commit fixes this bug.

See GH-490
pull/511/head
Tatsuhiro Tsujikawa 2015-12-02 23:49:38 +09:00
parent fb4310e849
commit 9a77c404f7
1 changed files with 3 additions and 0 deletions

View File

@ -984,6 +984,9 @@ void RequestGroup::releaseRuntimeResource(DownloadEngine* e)
// progress information via RPC
progressInfoFile_ = std::make_shared<NullProgressInfoFile>();
downloadContext_->releaseRuntimeResource();
// Reset seedOnly_, so that we can handle pause/unpause-ing seeding
// torrent with --bt-detach-seed-only.
seedOnly_ = false;
}
void RequestGroup::preDownloadProcessing()