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:
Tatsuhiro Tsujikawa 2014-07-20 18:36:52 +09:00
parent b611cd2bdc
commit d69764879e

View File

@ -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) {