From ef48097421c54b71a626f40f5b915b5048c979ca Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 12 Oct 2008 20:36:22 +0000 Subject: [PATCH] fix for #389 --- src/storage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage.cpp b/src/storage.cpp index d51eaeba3..1588e2a33 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -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 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);