forked from premiere/premiere-libtorrent
also exclude volatile option when using explicit cache
This commit is contained in:
parent
5b747f58f7
commit
8542343a0d
|
@ -1024,13 +1024,14 @@ namespace aux {
|
|||
|| m_settings.low_prio_disk != s.low_prio_disk)
|
||||
update_disk_io_thread = true;
|
||||
|
||||
//
|
||||
// safety check
|
||||
if (m_settings.volatile_read_cache
|
||||
&& m_settings.suggest_mode == session_settings::suggest_read_cache)
|
||||
&& (m_settings.suggest_mode == session_settings::suggest_read_cache
|
||||
|| m_settings.explicit_read_cache))
|
||||
{
|
||||
// If you hit this assert, you're trying to set your cache to be
|
||||
// volatile and to suggest pieces out of it at the same time
|
||||
// this is a bad configuration, don't do it
|
||||
// volatile and to suggest pieces out of it (or to make the cache
|
||||
// explicit) at the same time this is a bad configuration, don't do it
|
||||
TORRENT_ASSERT(false);
|
||||
m_settings.volatile_read_cache = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue