diff options
Diffstat (limited to 'libtorrent/src/file_pool.cpp')
-rw-r--r-- | libtorrent/src/file_pool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libtorrent/src/file_pool.cpp b/libtorrent/src/file_pool.cpp index 865c071ff..ef7ccca0d 100644 --- a/libtorrent/src/file_pool.cpp +++ b/libtorrent/src/file_pool.cpp @@ -57,7 +57,8 @@ namespace libtorrent lru_file_entry e = *i; e.last_use = time_now(); - if (e.key != st) + if (e.key != st && ((e.mode & file::rw_mask) != file::read_only + || (m & file::rw_mask) != file::read_only)) { // this means that another instance of the storage // is using the exact same file. |