From c21edfa6f17bd2ce226a9519beb8e56ee58f7d7c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 9 Jan 2009 18:18:46 +0000 Subject: [PATCH] fixed bug preventing clients to change the disk cache expiration time --- ChangeLog | 2 ++ src/session_impl.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e11c76256..62417f87a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -39,6 +39,8 @@ release 0.14.2 correction (filenames already were) * fixed dead-lock when settings DHT proxy * added missing export directives to lazy_entry + * fixed disk cache expiry settings bug (if changed, it would be set + to the cache size) release 0.14.1 diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 4a2c72c58..1b72a6721 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -585,7 +585,7 @@ namespace aux { if (m_settings.cache_size != s.cache_size) m_disk_thread.set_cache_size(s.cache_size); if (m_settings.cache_expiry != s.cache_expiry) - m_disk_thread.set_cache_size(s.cache_expiry); + m_disk_thread.set_cache_expiry(s.cache_expiry); // if queuing settings were changed, recalculate // queued torrents sooner if ((m_settings.active_downloads != s.active_downloads