From ab56bf964f1ae214bf31a5972a27e66dd1ca38ee Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 24 Jun 2018 15:19:22 +0200 Subject: [PATCH] fix missing move of file object in part_file --- src/part_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/part_file.cpp b/src/part_file.cpp index 7febe87e9..5fda0ecaa 100644 --- a/src/part_file.cpp +++ b/src/part_file.cpp @@ -233,7 +233,7 @@ namespace libtorrent { if (ec) return; f = std::make_shared(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)