mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-24 15:34:20 +00:00
Fix reading first slice for good header cache.
This commit is contained in:
parent
e66cde398a
commit
b57b4fa0f8
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user