fix missing move of file object in part_file

This commit is contained in:
Arvid Norberg 2018-06-24 15:19:22 +02:00 committed by Arvid Norberg
parent b67166b29d
commit ab56bf964f
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ namespace libtorrent {
if (ec) return;
f = std::make_shared<file>(fn, mode, ec);
}
if (!ec) m_file = f;
if (!ec) m_file = std::move(f);
}
void part_file::free_piece(piece_index_t const piece)