diff --git a/src/torrent.cpp b/src/torrent.cpp index 4ac3ad04f..0096cf5c4 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2517,7 +2517,11 @@ namespace libtorrent if (j->ret < 0) { if (j->error.ec == boost::system::errc::no_such_file_or_directory - || j->error.ec == boost::asio::error::eof) + || j->error.ec == boost::asio::error::eof +#ifdef TORRENT_WINDOWS + || j->error.ec == error_code(ERROR_HANDLE_EOF, system_category()) +#endif + ) { // skip this file by updating m_checking_piece to the first piece following it file_storage const& st = m_torrent_file->files();