mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user