allow torrents sharing files as long as they're both opened in read-only mode
This commit is contained in:
@@ -58,7 +58,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.
|
||||
|
Reference in New Issue
Block a user