mirror of https://github.com/aria2/aria2
2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Close DiskAdaptor after renaming file. * src/RequestGroup.ccpull/1/head
parent
8da16ce38c
commit
6796e1c805
|
@ -1,3 +1,8 @@
|
|||
2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Close DiskAdaptor after renaming file.
|
||||
* src/RequestGroup.cc
|
||||
|
||||
2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Corrected indentation
|
||||
|
|
|
@ -405,6 +405,9 @@ void RequestGroup::loadAndOpenFile(const BtProgressInfoFileHandle& progressInfoF
|
|||
// by tryAutoFileRenaming()
|
||||
progressInfoFile->updateFilename();
|
||||
if(progressInfoFile->exists()) {
|
||||
// Close DiskAdaptor here. Renmaed file will be opened in the
|
||||
// next loop .
|
||||
_pieceStorage->getDiskAdaptor()->closeFile();
|
||||
continue;
|
||||
}
|
||||
_pieceStorage->getDiskAdaptor()->initAndOpenFile();
|
||||
|
|
Loading…
Reference in New Issue