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
pull/1/head
Tatsuhiro Tsujikawa 2009-07-05 03:08:18 +00:00
parent cafd23a068
commit 051052e9e2
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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