mirror of
https://github.com/aria2/aria2.git
synced 2025-03-05 04:17:05 +00:00
2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Close DiskAdaptor after renaming file. * src/RequestGroup.cc
This commit is contained in:
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…
x
Reference in New Issue
Block a user