forked from premiere/premiere-libtorrent
fixed bug in avoid_readback disk cache eviction algorithm
This commit is contained in:
parent
caed433cc7
commit
8e92cad2db
|
@ -642,6 +642,8 @@ namespace libtorrent
|
||||||
ret += tmp;
|
ret += tmp;
|
||||||
} while (tmp > 0 && blocks > 0);
|
} while (tmp > 0 && blocks > 0);
|
||||||
|
|
||||||
|
if (blocks == 0) return ret;
|
||||||
|
|
||||||
if (options & dont_flush_write_blocks) return ret;
|
if (options & dont_flush_write_blocks) return ret;
|
||||||
|
|
||||||
// if we don't have any blocks in the cache, no need to go look for any
|
// if we don't have any blocks in the cache, no need to go look for any
|
||||||
|
|
Loading…
Reference in New Issue