disable hash checks fix

This commit is contained in:
Arvid Norberg 2011-05-05 04:02:10 +00:00
parent f0c2c8164d
commit 56364cc9c7
1 changed files with 2 additions and 0 deletions

View File

@ -1792,6 +1792,8 @@ ret:
// only save the partial hash if the write succeeds // only save the partial hash if the write succeeds
if (ret != size) return ret; if (ret != size) return ret;
if (m_storage->settings().disable_hash_checks) return ret;
#if defined TORRENT_PARTIAL_HASH_LOG && TORRENT_USE_IOSTREAM #if defined TORRENT_PARTIAL_HASH_LOG && TORRENT_USE_IOSTREAM
std::ofstream out("partial_hash.log", std::ios::app); std::ofstream out("partial_hash.log", std::ios::app);
#endif #endif