Fix reading first slice for good header cache.

This commit is contained in:
John Preston 2019-03-10 11:37:49 +04:00
parent e66cde398a
commit b57b4fa0f8

View File

@ -698,7 +698,7 @@ void Reader::readFromCache(int sliceNumber) {
Expects(!sliceNumber || !_slices.headerModeUnknown()); Expects(!sliceNumber || !_slices.headerModeUnknown());
if (sliceNumber == 1 && _slices.isGoodHeader()) { if (sliceNumber == 1 && _slices.isGoodHeader()) {
return readFromCache(1); return readFromCache(0);
} }
LOG(("READING FROM CACHE: %1").arg(sliceNumber)); LOG(("READING FROM CACHE: %1").arg(sliceNumber));
const auto key = _cacheHelper->key(sliceNumber); const auto key = _cacheHelper->key(sliceNumber);