|
@@ -405,6 +405,9 @@ void RequestGroup::loadAndOpenFile(const BtProgressInfoFileHandle& progressInfoF
|
|
// by tryAutoFileRenaming()
|
|
// by tryAutoFileRenaming()
|
|
progressInfoFile->updateFilename();
|
|
progressInfoFile->updateFilename();
|
|
if(progressInfoFile->exists()) {
|
|
if(progressInfoFile->exists()) {
|
|
|
|
+ // Close DiskAdaptor here. Renmaed file will be opened in the
|
|
|
|
+ // next loop .
|
|
|
|
+ _pieceStorage->getDiskAdaptor()->closeFile();
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
_pieceStorage->getDiskAdaptor()->initAndOpenFile();
|
|
_pieceStorage->getDiskAdaptor()->initAndOpenFile();
|