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