mirror of https://github.com/aria2/aria2
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed the call to DiskAdaptor::onDownloadComplete() from BtCheckIntegrityEntry and DefaultPieceStorage. * src/BtCheckIntegrityEntry.cc * src/DefaultPieceStorage.ccpull/1/head
parent
cafd23a068
commit
051052e9e2
|
@ -1,3 +1,10 @@
|
|||
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed the call to DiskAdaptor::onDownloadComplete() from
|
||||
BtCheckIntegrityEntry and DefaultPieceStorage.
|
||||
* src/BtCheckIntegrityEntry.cc
|
||||
* src/DefaultPieceStorage.cc
|
||||
|
||||
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Commented out throw statements when number of piece is 0 to
|
||||
|
|
|
@ -68,7 +68,6 @@ void BtCheckIntegrityEntry::onDownloadIncomplete(std::deque<Command*>& commands,
|
|||
void BtCheckIntegrityEntry::onDownloadFinished(std::deque<Command*>& commands,
|
||||
DownloadEngine* e)
|
||||
{
|
||||
_requestGroup->getPieceStorage()->getDiskAdaptor()->onDownloadComplete();
|
||||
// TODO Currently,when all the checksums
|
||||
// are valid, then aira2 goes to seeding mode. Sometimes it is better
|
||||
// to exit rather than doing seeding. So, it would be good to toggle this
|
||||
|
|
|
@ -346,7 +346,6 @@ void DefaultPieceStorage::completePiece(const PieceHandle& piece)
|
|||
addPieceStats(piece->getIndex());
|
||||
if(downloadFinished()) {
|
||||
downloadContext->resetDownloadStopTime();
|
||||
diskAdaptor->onDownloadComplete();
|
||||
if(isSelectiveDownloadingMode()) {
|
||||
logger->notice(MSG_SELECTIVE_DOWNLOAD_COMPLETED);
|
||||
// following line was commented out in order to stop sending request
|
||||
|
|
Loading…
Reference in New Issue