mirror of https://github.com/aria2/aria2
2010-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that AdaptiveFileAllocationIterator::finished() returns false even if offset_ >= totalLength_. This causes ftruncate error for seeding torrents. * src/AdaptiveFileAllocationIterator.ccpull/1/head
parent
f285f66ac8
commit
53c4de7ffd
|
@ -1,3 +1,10 @@
|
|||
2010-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed the bug that AdaptiveFileAllocationIterator::finished()
|
||||
returns false even if offset_ >= totalLength_. This causes
|
||||
ftruncate error for seeding torrents.
|
||||
* src/AdaptiveFileAllocationIterator.cc
|
||||
|
||||
2010-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Send each CWD component of FTP URI in separate CWD command as
|
||||
|
|
|
@ -93,7 +93,7 @@ void AdaptiveFileAllocationIterator::allocateChunk()
|
|||
bool AdaptiveFileAllocationIterator::finished()
|
||||
{
|
||||
if(allocator_.isNull()) {
|
||||
return false;
|
||||
return (uint64_t)offset_ >= totalLength_;
|
||||
} else {
|
||||
return allocator_->finished();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue