Add atp hash checking back in

This commit is contained in:
Ryan Huffman 2015-11-30 09:13:59 -08:00
parent 669d3c3523
commit 4220d7a3cc

View file

@ -105,7 +105,7 @@ void AssetRequest::start() {
Q_ASSERT(data.size() == (end - start));
// we need to check the hash of the received data to make sure it matches what we expect
if (hashData(data).toHex() == _hash || true) {
if (hashData(data).toHex() == _hash) {
memcpy(_data.data() + start, data.constData(), data.size());
_totalReceived += data.size();
emit progress(_totalReceived, _info.size);