fix missing move of file object in part_file
This commit is contained in:
parent
b67166b29d
commit
ab56bf964f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue