mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
fixes files that were left open in write mode by mistake, policy invariant check fix, fixed static assert being hit
This commit is contained in:
parent
85767b148a
commit
515305e950
2 changed files with 3 additions and 0 deletions
|
@ -1470,6 +1470,7 @@ namespace libtorrent
|
|||
{
|
||||
policy::peer* p = static_cast<policy::peer*>(*i);
|
||||
if (p == 0) continue;
|
||||
if (p->connection == 0) continue;
|
||||
TORRENT_ASSERT(std::find_if(m_peers.begin(), m_peers.end()
|
||||
, match_peer_connection(*p->connection)) != m_peers.end());
|
||||
}
|
||||
|
|
|
@ -460,6 +460,8 @@ namespace libtorrent
|
|||
->set_size(file_iter->size);
|
||||
}
|
||||
}
|
||||
// close files that were opened in write mode
|
||||
m_files.release(this);
|
||||
}
|
||||
|
||||
void storage::release_files()
|
||||
|
|
Loading…
Add table
Reference in a new issue