From 9a77c404f7dd73cf7b22603f3a4a34301c842650 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 2 Dec 2015 23:49:38 +0900 Subject: [PATCH] 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 --- src/RequestGroup.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index c8eaa9a1..f8aae22f 100644 --- a/src/RequestGroup.cc +++ b/src/RequestGroup.cc @@ -984,6 +984,9 @@ void RequestGroup::releaseRuntimeResource(DownloadEngine* e) // progress information via RPC progressInfoFile_ = std::make_shared(); downloadContext_->releaseRuntimeResource(); + // Reset seedOnly_, so that we can handle pause/unpause-ing seeding + // torrent with --bt-detach-seed-only. + seedOnly_ = false; } void RequestGroup::preDownloadProcessing()