mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
lt sync 3209
This commit is contained in:
parent
2de48097c0
commit
e8d75cffe3
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,8 @@ namespace libtorrent
|
||||||
lru_file_entry e = *i;
|
lru_file_entry e = *i;
|
||||||
e.last_use = time_now();
|
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
|
// this means that another instance of the storage
|
||||||
// is using the exact same file.
|
// is using the exact same file.
|
||||||
|
|
|
@ -2163,7 +2163,6 @@ namespace aux {
|
||||||
mutex_t::scoped_lock l(m_mutex);
|
mutex_t::scoped_lock l(m_mutex);
|
||||||
if (m_dht) e = m_dht->state();
|
if (m_dht) e = m_dht->state();
|
||||||
done = true;
|
done = true;
|
||||||
l.unlock();
|
|
||||||
c.notify_all();
|
c.notify_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue