fix for #389
This commit is contained in:
parent
57e2deebbe
commit
ef48097421
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue