forked from premiere/premiere-libtorrent
handle EOF error on windows when checking
This commit is contained in:
parent
cd456964ad
commit
6bd58da567
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue