Skip to content

Commit

Permalink
Pause torrent in all "fastresume rejected" cases
Browse files Browse the repository at this point in the history
PR #17087.
Addition to #17064.
  • Loading branch information
glassez authored May 25, 2022
1 parent 8e85406 commit 4032393
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/base/bittorrent/nativesessionextension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ namespace
{
void handleFastresumeRejectedAlert(const lt::fastresume_rejected_alert *alert)
{
if (alert->error.value() == lt::errors::mismatching_file_size)
{
alert->handle.unset_flags(lt::torrent_flags::auto_managed);
alert->handle.pause();
}
alert->handle.unset_flags(lt::torrent_flags::auto_managed);
alert->handle.pause();
}
}

Expand Down

0 comments on commit 4032393

Please sign in to comment.