handle EOF error on windows when checking

This commit is contained in:
Arvid Norberg 2014-07-20 09:27:02 +00:00
parent cd456964ad
commit 6bd58da567
1 changed files with 5 additions and 1 deletions

View File

@ -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();