forked from premiere/premiere-libtorrent
fixed crash when setting cache_buffer_chunk_size to 0
This commit is contained in:
parent
1b6227ad31
commit
11e5e2539a
|
@ -1682,6 +1682,9 @@ namespace aux {
|
|||
|
||||
m_settings = s;
|
||||
|
||||
if (m_settings.cache_buffer_chunk_size <= 0)
|
||||
m_settings.cache_buffer_chunk_size = 1;
|
||||
|
||||
update_rate_settings();
|
||||
|
||||
if (connections_limit_changed) update_connections_limit();
|
||||
|
|
Loading…
Reference in New Issue