mirror of https://github.com/aria2/aria2
Fix regression 100% CPU utility when -V is used and download is multi-file BT
This is regression of a3426821c8
pull/260/head
parent
b611cd2bdc
commit
d69764879e
|
@ -394,6 +394,10 @@ ssize_t MultiDiskAdaptor::readData
|
||||||
auto nread = (*i)->getDiskWriter()->readData(data+(len-rem),
|
auto nread = (*i)->getDiskWriter()->readData(data+(len-rem),
|
||||||
readLength, fileOffset);
|
readLength, fileOffset);
|
||||||
|
|
||||||
|
if(nread == 0) {
|
||||||
|
return totalReadLength;
|
||||||
|
}
|
||||||
|
|
||||||
totalReadLength += nread;
|
totalReadLength += nread;
|
||||||
|
|
||||||
if(dropCache) {
|
if(dropCache) {
|
||||||
|
|
Loading…
Reference in New Issue