Преглед на файлове

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
Tatsuhiro Tsujikawa преди 16 години
родител
ревизия
051052e9e2
променени са 3 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. 7 0
      ChangeLog
  2. 0 1
      src/BtCheckIntegrityEntry.cc
  3. 0 1
      src/DefaultPieceStorage.cc

+ 7 - 0
ChangeLog

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

+ 0 - 1
src/BtCheckIntegrityEntry.cc

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

+ 0 - 1
src/DefaultPieceStorage.cc

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