mirror of https://github.com/aria2/aria2
Pause download even if download is completed
This allows to pause and unpause BitTorrent seed.pull/28/head
parent
f6c7aaa1cd
commit
763c7a0aa0
|
@ -394,9 +394,12 @@ public:
|
|||
}
|
||||
try {
|
||||
group->closeFile();
|
||||
if(group->downloadFinished() &&
|
||||
if(group->isPauseRequested()) {
|
||||
A2_LOG_NOTICE
|
||||
(fmt(_("Download GID#%" PRId64 " paused"), group->getGID()));
|
||||
group->saveControlFile();
|
||||
} else if(group->downloadFinished() &&
|
||||
!group->getDownloadContext()->isChecksumVerificationNeeded()) {
|
||||
group->setPauseRequested(false);
|
||||
group->applyLastModifiedTimeToLocalFiles();
|
||||
group->reportDownloadFinished();
|
||||
if(group->allDownloadFinished()) {
|
||||
|
|
Loading…
Reference in New Issue