This commit is contained in:
Arvid Norberg 2008-10-12 20:36:22 +00:00
parent 57e2deebbe
commit ef48097421
1 changed files with 2 additions and 1 deletions

View File

@ -526,7 +526,8 @@ namespace libtorrent
if (file_iter->size == 0 && (int(m_file_priority.size()) <= file_index
|| m_file_priority[file_index] > 0))
{
file(m_save_path / file_iter->path, file::out, ec);
boost::shared_ptr<file> f = m_pool.open_file(this
, m_save_path / file_iter->path, file::in | file::out, ec);
if (ec)
{
set_error(m_save_path / file_iter->path, ec);