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